@banch0u/core-project-test-repository 2.2.15 → 2.2.20
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 +18 -2
- package/dist/pages/Questionnnaires/QuestionnairesCustomersContent/constant.js +70 -0
- package/dist/pages/Questionnnaires/QuestionnairesCustomersContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesProjectsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesProjectsContent/index.js +247 -0
- package/dist/routes/QuestionnaireRoutes.js +13 -1
- package/dist/store/slices/global/index.js +176 -164
- package/dist/store/slices/questionnaire/index.js +739 -321
- package/dist/store/slices/questionnaire/service.js +256 -0
- package/dist/tools/questionnaireGenerator.js +3 -3
- package/dist/utils/path.js +8 -0
- package/package.json +1 -1
|
@@ -9284,4 +9284,260 @@ _defineProperty(Services, "pentionsVisibility", /*#__PURE__*/function () {
|
|
|
9284
9284
|
return _ref480.apply(this, arguments);
|
|
9285
9285
|
};
|
|
9286
9286
|
}());
|
|
9287
|
+
// ---- end generated ----
|
|
9288
|
+
// ---- generated by questionnaireGenerator: Projects ----
|
|
9289
|
+
_defineProperty(Services, "getProjects", /*#__PURE__*/function () {
|
|
9290
|
+
var _ref481 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee481(size, page, query, visibility) {
|
|
9291
|
+
var response;
|
|
9292
|
+
return _regeneratorRuntime.wrap(function (_context481) {
|
|
9293
|
+
while (1) switch (_context481.prev = _context481.next) {
|
|
9294
|
+
case 0:
|
|
9295
|
+
_context481.next = 1;
|
|
9296
|
+
return api.get("/projects/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
9297
|
+
case 1:
|
|
9298
|
+
response = _context481.sent;
|
|
9299
|
+
return _context481.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9300
|
+
case 2:
|
|
9301
|
+
case "end":
|
|
9302
|
+
return _context481.stop();
|
|
9303
|
+
}
|
|
9304
|
+
}, _callee481);
|
|
9305
|
+
}));
|
|
9306
|
+
return function (_x735, _x736, _x737, _x738) {
|
|
9307
|
+
return _ref481.apply(this, arguments);
|
|
9308
|
+
};
|
|
9309
|
+
}());
|
|
9310
|
+
_defineProperty(Services, "getProjectsAll", /*#__PURE__*/function () {
|
|
9311
|
+
var _ref482 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee482(visibility) {
|
|
9312
|
+
var response;
|
|
9313
|
+
return _regeneratorRuntime.wrap(function (_context482) {
|
|
9314
|
+
while (1) switch (_context482.prev = _context482.next) {
|
|
9315
|
+
case 0:
|
|
9316
|
+
_context482.next = 1;
|
|
9317
|
+
return api.get("/projects?visibility=".concat(visibility));
|
|
9318
|
+
case 1:
|
|
9319
|
+
response = _context482.sent;
|
|
9320
|
+
return _context482.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9321
|
+
case 2:
|
|
9322
|
+
case "end":
|
|
9323
|
+
return _context482.stop();
|
|
9324
|
+
}
|
|
9325
|
+
}, _callee482);
|
|
9326
|
+
}));
|
|
9327
|
+
return function (_x739) {
|
|
9328
|
+
return _ref482.apply(this, arguments);
|
|
9329
|
+
};
|
|
9330
|
+
}());
|
|
9331
|
+
_defineProperty(Services, "addProjects", /*#__PURE__*/function () {
|
|
9332
|
+
var _ref483 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee483(value) {
|
|
9333
|
+
var response;
|
|
9334
|
+
return _regeneratorRuntime.wrap(function (_context483) {
|
|
9335
|
+
while (1) switch (_context483.prev = _context483.next) {
|
|
9336
|
+
case 0:
|
|
9337
|
+
_context483.next = 1;
|
|
9338
|
+
return api.post("/projects", value);
|
|
9339
|
+
case 1:
|
|
9340
|
+
response = _context483.sent;
|
|
9341
|
+
return _context483.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9342
|
+
case 2:
|
|
9343
|
+
case "end":
|
|
9344
|
+
return _context483.stop();
|
|
9345
|
+
}
|
|
9346
|
+
}, _callee483);
|
|
9347
|
+
}));
|
|
9348
|
+
return function (_x740) {
|
|
9349
|
+
return _ref483.apply(this, arguments);
|
|
9350
|
+
};
|
|
9351
|
+
}());
|
|
9352
|
+
_defineProperty(Services, "editProjects", /*#__PURE__*/function () {
|
|
9353
|
+
var _ref484 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee484(data) {
|
|
9354
|
+
var response;
|
|
9355
|
+
return _regeneratorRuntime.wrap(function (_context484) {
|
|
9356
|
+
while (1) switch (_context484.prev = _context484.next) {
|
|
9357
|
+
case 0:
|
|
9358
|
+
_context484.next = 1;
|
|
9359
|
+
return api.put("/projects/".concat(data === null || data === void 0 ? void 0 : data.id), data);
|
|
9360
|
+
case 1:
|
|
9361
|
+
response = _context484.sent;
|
|
9362
|
+
return _context484.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9363
|
+
case 2:
|
|
9364
|
+
case "end":
|
|
9365
|
+
return _context484.stop();
|
|
9366
|
+
}
|
|
9367
|
+
}, _callee484);
|
|
9368
|
+
}));
|
|
9369
|
+
return function (_x741) {
|
|
9370
|
+
return _ref484.apply(this, arguments);
|
|
9371
|
+
};
|
|
9372
|
+
}());
|
|
9373
|
+
_defineProperty(Services, "deleteProjects", /*#__PURE__*/function () {
|
|
9374
|
+
var _ref485 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee485(id) {
|
|
9375
|
+
var response;
|
|
9376
|
+
return _regeneratorRuntime.wrap(function (_context485) {
|
|
9377
|
+
while (1) switch (_context485.prev = _context485.next) {
|
|
9378
|
+
case 0:
|
|
9379
|
+
_context485.next = 1;
|
|
9380
|
+
return api["delete"]("/projects/".concat(id));
|
|
9381
|
+
case 1:
|
|
9382
|
+
response = _context485.sent;
|
|
9383
|
+
return _context485.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9384
|
+
case 2:
|
|
9385
|
+
case "end":
|
|
9386
|
+
return _context485.stop();
|
|
9387
|
+
}
|
|
9388
|
+
}, _callee485);
|
|
9389
|
+
}));
|
|
9390
|
+
return function (_x742) {
|
|
9391
|
+
return _ref485.apply(this, arguments);
|
|
9392
|
+
};
|
|
9393
|
+
}());
|
|
9394
|
+
_defineProperty(Services, "projectsVisibility", /*#__PURE__*/function () {
|
|
9395
|
+
var _ref486 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee486(data) {
|
|
9396
|
+
var response;
|
|
9397
|
+
return _regeneratorRuntime.wrap(function (_context486) {
|
|
9398
|
+
while (1) switch (_context486.prev = _context486.next) {
|
|
9399
|
+
case 0:
|
|
9400
|
+
_context486.next = 1;
|
|
9401
|
+
return api.patch("/projects/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
9402
|
+
case 1:
|
|
9403
|
+
response = _context486.sent;
|
|
9404
|
+
return _context486.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9405
|
+
case 2:
|
|
9406
|
+
case "end":
|
|
9407
|
+
return _context486.stop();
|
|
9408
|
+
}
|
|
9409
|
+
}, _callee486);
|
|
9410
|
+
}));
|
|
9411
|
+
return function (_x743) {
|
|
9412
|
+
return _ref486.apply(this, arguments);
|
|
9413
|
+
};
|
|
9414
|
+
}());
|
|
9415
|
+
// ---- end generated ----
|
|
9416
|
+
// ---- generated by questionnaireGenerator: Customers ----
|
|
9417
|
+
_defineProperty(Services, "getCustomers", /*#__PURE__*/function () {
|
|
9418
|
+
var _ref487 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee487(size, page, query, visibility) {
|
|
9419
|
+
var response;
|
|
9420
|
+
return _regeneratorRuntime.wrap(function (_context487) {
|
|
9421
|
+
while (1) switch (_context487.prev = _context487.next) {
|
|
9422
|
+
case 0:
|
|
9423
|
+
_context487.next = 1;
|
|
9424
|
+
return api.get("/customers/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
9425
|
+
case 1:
|
|
9426
|
+
response = _context487.sent;
|
|
9427
|
+
return _context487.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9428
|
+
case 2:
|
|
9429
|
+
case "end":
|
|
9430
|
+
return _context487.stop();
|
|
9431
|
+
}
|
|
9432
|
+
}, _callee487);
|
|
9433
|
+
}));
|
|
9434
|
+
return function (_x744, _x745, _x746, _x747) {
|
|
9435
|
+
return _ref487.apply(this, arguments);
|
|
9436
|
+
};
|
|
9437
|
+
}());
|
|
9438
|
+
_defineProperty(Services, "getCustomersAll", /*#__PURE__*/function () {
|
|
9439
|
+
var _ref488 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee488(visibility) {
|
|
9440
|
+
var response;
|
|
9441
|
+
return _regeneratorRuntime.wrap(function (_context488) {
|
|
9442
|
+
while (1) switch (_context488.prev = _context488.next) {
|
|
9443
|
+
case 0:
|
|
9444
|
+
_context488.next = 1;
|
|
9445
|
+
return api.get("/customers?visibility=".concat(visibility));
|
|
9446
|
+
case 1:
|
|
9447
|
+
response = _context488.sent;
|
|
9448
|
+
return _context488.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9449
|
+
case 2:
|
|
9450
|
+
case "end":
|
|
9451
|
+
return _context488.stop();
|
|
9452
|
+
}
|
|
9453
|
+
}, _callee488);
|
|
9454
|
+
}));
|
|
9455
|
+
return function (_x748) {
|
|
9456
|
+
return _ref488.apply(this, arguments);
|
|
9457
|
+
};
|
|
9458
|
+
}());
|
|
9459
|
+
_defineProperty(Services, "addCustomers", /*#__PURE__*/function () {
|
|
9460
|
+
var _ref489 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee489(value) {
|
|
9461
|
+
var response;
|
|
9462
|
+
return _regeneratorRuntime.wrap(function (_context489) {
|
|
9463
|
+
while (1) switch (_context489.prev = _context489.next) {
|
|
9464
|
+
case 0:
|
|
9465
|
+
_context489.next = 1;
|
|
9466
|
+
return api.post("/customers", value);
|
|
9467
|
+
case 1:
|
|
9468
|
+
response = _context489.sent;
|
|
9469
|
+
return _context489.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9470
|
+
case 2:
|
|
9471
|
+
case "end":
|
|
9472
|
+
return _context489.stop();
|
|
9473
|
+
}
|
|
9474
|
+
}, _callee489);
|
|
9475
|
+
}));
|
|
9476
|
+
return function (_x749) {
|
|
9477
|
+
return _ref489.apply(this, arguments);
|
|
9478
|
+
};
|
|
9479
|
+
}());
|
|
9480
|
+
_defineProperty(Services, "editCustomers", /*#__PURE__*/function () {
|
|
9481
|
+
var _ref490 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee490(data) {
|
|
9482
|
+
var response;
|
|
9483
|
+
return _regeneratorRuntime.wrap(function (_context490) {
|
|
9484
|
+
while (1) switch (_context490.prev = _context490.next) {
|
|
9485
|
+
case 0:
|
|
9486
|
+
_context490.next = 1;
|
|
9487
|
+
return api.put("/customers/".concat(data === null || data === void 0 ? void 0 : data.id), data);
|
|
9488
|
+
case 1:
|
|
9489
|
+
response = _context490.sent;
|
|
9490
|
+
return _context490.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9491
|
+
case 2:
|
|
9492
|
+
case "end":
|
|
9493
|
+
return _context490.stop();
|
|
9494
|
+
}
|
|
9495
|
+
}, _callee490);
|
|
9496
|
+
}));
|
|
9497
|
+
return function (_x750) {
|
|
9498
|
+
return _ref490.apply(this, arguments);
|
|
9499
|
+
};
|
|
9500
|
+
}());
|
|
9501
|
+
_defineProperty(Services, "deleteCustomers", /*#__PURE__*/function () {
|
|
9502
|
+
var _ref491 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee491(id) {
|
|
9503
|
+
var response;
|
|
9504
|
+
return _regeneratorRuntime.wrap(function (_context491) {
|
|
9505
|
+
while (1) switch (_context491.prev = _context491.next) {
|
|
9506
|
+
case 0:
|
|
9507
|
+
_context491.next = 1;
|
|
9508
|
+
return api["delete"]("/customers/".concat(id));
|
|
9509
|
+
case 1:
|
|
9510
|
+
response = _context491.sent;
|
|
9511
|
+
return _context491.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9512
|
+
case 2:
|
|
9513
|
+
case "end":
|
|
9514
|
+
return _context491.stop();
|
|
9515
|
+
}
|
|
9516
|
+
}, _callee491);
|
|
9517
|
+
}));
|
|
9518
|
+
return function (_x751) {
|
|
9519
|
+
return _ref491.apply(this, arguments);
|
|
9520
|
+
};
|
|
9521
|
+
}());
|
|
9522
|
+
_defineProperty(Services, "customersVisibility", /*#__PURE__*/function () {
|
|
9523
|
+
var _ref492 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee492(data) {
|
|
9524
|
+
var response;
|
|
9525
|
+
return _regeneratorRuntime.wrap(function (_context492) {
|
|
9526
|
+
while (1) switch (_context492.prev = _context492.next) {
|
|
9527
|
+
case 0:
|
|
9528
|
+
_context492.next = 1;
|
|
9529
|
+
return api.patch("/customers/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
9530
|
+
case 1:
|
|
9531
|
+
response = _context492.sent;
|
|
9532
|
+
return _context492.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9533
|
+
case 2:
|
|
9534
|
+
case "end":
|
|
9535
|
+
return _context492.stop();
|
|
9536
|
+
}
|
|
9537
|
+
}, _callee492);
|
|
9538
|
+
}));
|
|
9539
|
+
return function (_x752) {
|
|
9540
|
+
return _ref492.apply(this, arguments);
|
|
9541
|
+
};
|
|
9542
|
+
}());
|
|
9287
9543
|
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 = "
|
|
14
|
-
var constantColumnName = "
|
|
15
|
-
var endpointName = "/
|
|
13
|
+
var questionnaireName = "Customers"; // change as needed
|
|
14
|
+
var constantColumnName = "Müştərilər"; // change as needed
|
|
15
|
+
var endpointName = "/customers";
|
|
16
16
|
///////////////////////////////////
|
|
17
17
|
|
|
18
18
|
var upperName = questionnaireName.toUpperCase();
|
package/dist/utils/path.js
CHANGED
|
@@ -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: CUSTOMERS ----
|
|
6
|
+
export var QUESTIONNAIRES_CUSTOMERS = QUESTIONNAIRES + "/customers";
|
|
7
|
+
// ---- end generated ----
|
|
8
|
+
|
|
9
|
+
// ---- generated by questionnaireGenerator: PROJECTS ----
|
|
10
|
+
export var QUESTIONNAIRES_PROJECTS = QUESTIONNAIRES + "/projects";
|
|
11
|
+
// ---- end generated ----
|
|
12
|
+
|
|
5
13
|
// ---- generated by questionnaireGenerator: PENTIONS ----
|
|
6
14
|
export var QUESTIONNAIRES_PENTIONS = QUESTIONNAIRES + "/pentions";
|
|
7
15
|
// ---- end generated ----
|