@banch0u/core-project-test-repository 1.11.5 → 1.11.7
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/QuestionnairesExtraServicesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/index.js +250 -0
- package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/index.js +244 -0
- package/dist/routes/QuestionnaireRoutes.js +15 -1
- package/dist/store/slices/questionnaire/index.js +664 -256
- package/dist/store/slices/questionnaire/service.js +238 -0
- package/dist/utils/path.js +5 -1
- package/package.json +1 -1
|
@@ -7273,4 +7273,242 @@ _defineProperty(Services, "insuranceTypesVisibility", /*#__PURE__*/function () {
|
|
|
7273
7273
|
return _ref386.apply(this, arguments);
|
|
7274
7274
|
};
|
|
7275
7275
|
}());
|
|
7276
|
+
//
|
|
7277
|
+
_defineProperty(Services, "getExtraServices", /*#__PURE__*/function () {
|
|
7278
|
+
var _ref387 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee387(size, page, query, visibility) {
|
|
7279
|
+
return _regeneratorRuntime.wrap(function _callee387$(_context387) {
|
|
7280
|
+
while (1) switch (_context387.prev = _context387.next) {
|
|
7281
|
+
case 0:
|
|
7282
|
+
_context387.next = 2;
|
|
7283
|
+
return api.get("/extraservices/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
7284
|
+
case 2:
|
|
7285
|
+
return _context387.abrupt("return", _context387.sent);
|
|
7286
|
+
case 3:
|
|
7287
|
+
case "end":
|
|
7288
|
+
return _context387.stop();
|
|
7289
|
+
}
|
|
7290
|
+
}, _callee387);
|
|
7291
|
+
}));
|
|
7292
|
+
return function (_x590, _x591, _x592, _x593) {
|
|
7293
|
+
return _ref387.apply(this, arguments);
|
|
7294
|
+
};
|
|
7295
|
+
}());
|
|
7296
|
+
_defineProperty(Services, "getExtraServicesAll", /*#__PURE__*/function () {
|
|
7297
|
+
var _ref388 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee388(visibility) {
|
|
7298
|
+
return _regeneratorRuntime.wrap(function _callee388$(_context388) {
|
|
7299
|
+
while (1) switch (_context388.prev = _context388.next) {
|
|
7300
|
+
case 0:
|
|
7301
|
+
_context388.next = 2;
|
|
7302
|
+
return api.get("/extraservices?visibility=".concat(visibility));
|
|
7303
|
+
case 2:
|
|
7304
|
+
return _context388.abrupt("return", _context388.sent);
|
|
7305
|
+
case 3:
|
|
7306
|
+
case "end":
|
|
7307
|
+
return _context388.stop();
|
|
7308
|
+
}
|
|
7309
|
+
}, _callee388);
|
|
7310
|
+
}));
|
|
7311
|
+
return function (_x594) {
|
|
7312
|
+
return _ref388.apply(this, arguments);
|
|
7313
|
+
};
|
|
7314
|
+
}());
|
|
7315
|
+
_defineProperty(Services, "addExtraServices", /*#__PURE__*/function () {
|
|
7316
|
+
var _ref389 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee389(data) {
|
|
7317
|
+
return _regeneratorRuntime.wrap(function _callee389$(_context389) {
|
|
7318
|
+
while (1) switch (_context389.prev = _context389.next) {
|
|
7319
|
+
case 0:
|
|
7320
|
+
_context389.next = 2;
|
|
7321
|
+
return api.post("/extraservices", data, {
|
|
7322
|
+
headers: {
|
|
7323
|
+
"Content-Type": "application/json"
|
|
7324
|
+
}
|
|
7325
|
+
});
|
|
7326
|
+
case 2:
|
|
7327
|
+
return _context389.abrupt("return", _context389.sent);
|
|
7328
|
+
case 3:
|
|
7329
|
+
case "end":
|
|
7330
|
+
return _context389.stop();
|
|
7331
|
+
}
|
|
7332
|
+
}, _callee389);
|
|
7333
|
+
}));
|
|
7334
|
+
return function (_x595) {
|
|
7335
|
+
return _ref389.apply(this, arguments);
|
|
7336
|
+
};
|
|
7337
|
+
}());
|
|
7338
|
+
_defineProperty(Services, "editExtraServices", /*#__PURE__*/function () {
|
|
7339
|
+
var _ref390 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee390(value) {
|
|
7340
|
+
return _regeneratorRuntime.wrap(function _callee390$(_context390) {
|
|
7341
|
+
while (1) switch (_context390.prev = _context390.next) {
|
|
7342
|
+
case 0:
|
|
7343
|
+
_context390.next = 2;
|
|
7344
|
+
return api.put("/extraservices/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
7345
|
+
case 2:
|
|
7346
|
+
return _context390.abrupt("return", _context390.sent);
|
|
7347
|
+
case 3:
|
|
7348
|
+
case "end":
|
|
7349
|
+
return _context390.stop();
|
|
7350
|
+
}
|
|
7351
|
+
}, _callee390);
|
|
7352
|
+
}));
|
|
7353
|
+
return function (_x596) {
|
|
7354
|
+
return _ref390.apply(this, arguments);
|
|
7355
|
+
};
|
|
7356
|
+
}());
|
|
7357
|
+
_defineProperty(Services, "deleteExtraServices", /*#__PURE__*/function () {
|
|
7358
|
+
var _ref391 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee391(id) {
|
|
7359
|
+
return _regeneratorRuntime.wrap(function _callee391$(_context391) {
|
|
7360
|
+
while (1) switch (_context391.prev = _context391.next) {
|
|
7361
|
+
case 0:
|
|
7362
|
+
_context391.next = 2;
|
|
7363
|
+
return api["delete"]("/extraservices/".concat(id));
|
|
7364
|
+
case 2:
|
|
7365
|
+
return _context391.abrupt("return", _context391.sent);
|
|
7366
|
+
case 3:
|
|
7367
|
+
case "end":
|
|
7368
|
+
return _context391.stop();
|
|
7369
|
+
}
|
|
7370
|
+
}, _callee391);
|
|
7371
|
+
}));
|
|
7372
|
+
return function (_x597) {
|
|
7373
|
+
return _ref391.apply(this, arguments);
|
|
7374
|
+
};
|
|
7375
|
+
}());
|
|
7376
|
+
_defineProperty(Services, "extraServicesVisibility", /*#__PURE__*/function () {
|
|
7377
|
+
var _ref392 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee392(data) {
|
|
7378
|
+
return _regeneratorRuntime.wrap(function _callee392$(_context392) {
|
|
7379
|
+
while (1) switch (_context392.prev = _context392.next) {
|
|
7380
|
+
case 0:
|
|
7381
|
+
_context392.next = 2;
|
|
7382
|
+
return api.patch("/extraservices/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
7383
|
+
case 2:
|
|
7384
|
+
return _context392.abrupt("return", _context392.sent);
|
|
7385
|
+
case 3:
|
|
7386
|
+
case "end":
|
|
7387
|
+
return _context392.stop();
|
|
7388
|
+
}
|
|
7389
|
+
}, _callee392);
|
|
7390
|
+
}));
|
|
7391
|
+
return function (_x598) {
|
|
7392
|
+
return _ref392.apply(this, arguments);
|
|
7393
|
+
};
|
|
7394
|
+
}());
|
|
7395
|
+
//
|
|
7396
|
+
_defineProperty(Services, "getFuelTypes", /*#__PURE__*/function () {
|
|
7397
|
+
var _ref393 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee393(size, page, query, visibility) {
|
|
7398
|
+
return _regeneratorRuntime.wrap(function _callee393$(_context393) {
|
|
7399
|
+
while (1) switch (_context393.prev = _context393.next) {
|
|
7400
|
+
case 0:
|
|
7401
|
+
_context393.next = 2;
|
|
7402
|
+
return api.get("/fueltypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
7403
|
+
case 2:
|
|
7404
|
+
return _context393.abrupt("return", _context393.sent);
|
|
7405
|
+
case 3:
|
|
7406
|
+
case "end":
|
|
7407
|
+
return _context393.stop();
|
|
7408
|
+
}
|
|
7409
|
+
}, _callee393);
|
|
7410
|
+
}));
|
|
7411
|
+
return function (_x599, _x600, _x601, _x602) {
|
|
7412
|
+
return _ref393.apply(this, arguments);
|
|
7413
|
+
};
|
|
7414
|
+
}());
|
|
7415
|
+
_defineProperty(Services, "getFuelTypesAll", /*#__PURE__*/function () {
|
|
7416
|
+
var _ref394 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee394(visibility) {
|
|
7417
|
+
return _regeneratorRuntime.wrap(function _callee394$(_context394) {
|
|
7418
|
+
while (1) switch (_context394.prev = _context394.next) {
|
|
7419
|
+
case 0:
|
|
7420
|
+
_context394.next = 2;
|
|
7421
|
+
return api.get("/fueltypes?visibility=".concat(visibility));
|
|
7422
|
+
case 2:
|
|
7423
|
+
return _context394.abrupt("return", _context394.sent);
|
|
7424
|
+
case 3:
|
|
7425
|
+
case "end":
|
|
7426
|
+
return _context394.stop();
|
|
7427
|
+
}
|
|
7428
|
+
}, _callee394);
|
|
7429
|
+
}));
|
|
7430
|
+
return function (_x603) {
|
|
7431
|
+
return _ref394.apply(this, arguments);
|
|
7432
|
+
};
|
|
7433
|
+
}());
|
|
7434
|
+
_defineProperty(Services, "addFuelTypes", /*#__PURE__*/function () {
|
|
7435
|
+
var _ref395 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee395(data) {
|
|
7436
|
+
return _regeneratorRuntime.wrap(function _callee395$(_context395) {
|
|
7437
|
+
while (1) switch (_context395.prev = _context395.next) {
|
|
7438
|
+
case 0:
|
|
7439
|
+
_context395.next = 2;
|
|
7440
|
+
return api.post("/fueltypes", data, {
|
|
7441
|
+
headers: {
|
|
7442
|
+
"Content-Type": "application/json"
|
|
7443
|
+
}
|
|
7444
|
+
});
|
|
7445
|
+
case 2:
|
|
7446
|
+
return _context395.abrupt("return", _context395.sent);
|
|
7447
|
+
case 3:
|
|
7448
|
+
case "end":
|
|
7449
|
+
return _context395.stop();
|
|
7450
|
+
}
|
|
7451
|
+
}, _callee395);
|
|
7452
|
+
}));
|
|
7453
|
+
return function (_x604) {
|
|
7454
|
+
return _ref395.apply(this, arguments);
|
|
7455
|
+
};
|
|
7456
|
+
}());
|
|
7457
|
+
_defineProperty(Services, "editFuelTypes", /*#__PURE__*/function () {
|
|
7458
|
+
var _ref396 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee396(value) {
|
|
7459
|
+
return _regeneratorRuntime.wrap(function _callee396$(_context396) {
|
|
7460
|
+
while (1) switch (_context396.prev = _context396.next) {
|
|
7461
|
+
case 0:
|
|
7462
|
+
_context396.next = 2;
|
|
7463
|
+
return api.put("/fueltypes/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
7464
|
+
case 2:
|
|
7465
|
+
return _context396.abrupt("return", _context396.sent);
|
|
7466
|
+
case 3:
|
|
7467
|
+
case "end":
|
|
7468
|
+
return _context396.stop();
|
|
7469
|
+
}
|
|
7470
|
+
}, _callee396);
|
|
7471
|
+
}));
|
|
7472
|
+
return function (_x605) {
|
|
7473
|
+
return _ref396.apply(this, arguments);
|
|
7474
|
+
};
|
|
7475
|
+
}());
|
|
7476
|
+
_defineProperty(Services, "deleteFuelTypes", /*#__PURE__*/function () {
|
|
7477
|
+
var _ref397 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee397(id) {
|
|
7478
|
+
return _regeneratorRuntime.wrap(function _callee397$(_context397) {
|
|
7479
|
+
while (1) switch (_context397.prev = _context397.next) {
|
|
7480
|
+
case 0:
|
|
7481
|
+
_context397.next = 2;
|
|
7482
|
+
return api["delete"]("/fueltypes/".concat(id));
|
|
7483
|
+
case 2:
|
|
7484
|
+
return _context397.abrupt("return", _context397.sent);
|
|
7485
|
+
case 3:
|
|
7486
|
+
case "end":
|
|
7487
|
+
return _context397.stop();
|
|
7488
|
+
}
|
|
7489
|
+
}, _callee397);
|
|
7490
|
+
}));
|
|
7491
|
+
return function (_x606) {
|
|
7492
|
+
return _ref397.apply(this, arguments);
|
|
7493
|
+
};
|
|
7494
|
+
}());
|
|
7495
|
+
_defineProperty(Services, "fuelTypesVisibility", /*#__PURE__*/function () {
|
|
7496
|
+
var _ref398 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee398(data) {
|
|
7497
|
+
return _regeneratorRuntime.wrap(function _callee398$(_context398) {
|
|
7498
|
+
while (1) switch (_context398.prev = _context398.next) {
|
|
7499
|
+
case 0:
|
|
7500
|
+
_context398.next = 2;
|
|
7501
|
+
return api.patch("/fueltypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
7502
|
+
case 2:
|
|
7503
|
+
return _context398.abrupt("return", _context398.sent);
|
|
7504
|
+
case 3:
|
|
7505
|
+
case "end":
|
|
7506
|
+
return _context398.stop();
|
|
7507
|
+
}
|
|
7508
|
+
}, _callee398);
|
|
7509
|
+
}));
|
|
7510
|
+
return function (_x607) {
|
|
7511
|
+
return _ref398.apply(this, arguments);
|
|
7512
|
+
};
|
|
7513
|
+
}());
|
|
7276
7514
|
export default Services;
|
package/dist/utils/path.js
CHANGED
|
@@ -127,4 +127,8 @@ export var SETTINGS_QUESTIONNAIRES_PENALTY_TYPES = SETTINGS_QUESTIONNAIRES + "/p
|
|
|
127
127
|
export var QUESTIONNAIRES_CRUSH_REASONS = QUESTIONNAIRES + "/crush-reasons";
|
|
128
128
|
export var SETTINGS_QUESTIONNAIRES_CRUSH_REASONS = SETTINGS_QUESTIONNAIRES + "/crush-reasons";
|
|
129
129
|
export var QUESTIONNAIRES_INSURANCE_TYPES = QUESTIONNAIRES + "/insurance-types";
|
|
130
|
-
export var SETTINGS_QUESTIONNAIRES_INSURANCE_TYPES = SETTINGS_QUESTIONNAIRES + "/insurance-types";
|
|
130
|
+
export var SETTINGS_QUESTIONNAIRES_INSURANCE_TYPES = SETTINGS_QUESTIONNAIRES + "/insurance-types";
|
|
131
|
+
export var QUESTIONNAIRES_EXTRA_SERVICES = QUESTIONNAIRES + "/extra-services";
|
|
132
|
+
export var SETTINGS_QUESTIONNAIRES_EXTRA_SERVICES = SETTINGS_QUESTIONNAIRES + "/extra-services";
|
|
133
|
+
export var QUESTIONNAIRES_FUEL_TYPES = QUESTIONNAIRES + "/fuel-types";
|
|
134
|
+
export var SETTINGS_QUESTIONNAIRES_FUEL_TYPES = SETTINGS_QUESTIONNAIRES + "/fuel-types";
|