@banch0u/core-project-test-repository 1.9.12 → 1.10.0
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 +11 -3
- package/dist/pages/Platform/constant.js +2 -2
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/constant.js +13 -4
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +37 -16
- package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/index.js +244 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/index.js +244 -0
- package/dist/routes/QuestionnaireRoutes.js +15 -1
- package/dist/store/slices/global/index.js +15 -3
- package/dist/store/slices/questionnaire/index.js +621 -215
- package/dist/store/slices/questionnaire/service.js +238 -0
- package/dist/utils/path.js +5 -1
- package/package.json +1 -1
|
@@ -6066,4 +6066,242 @@ _defineProperty(Services, "ordersVisibility", /*#__PURE__*/function () {
|
|
|
6066
6066
|
return _ref325.apply(this, arguments);
|
|
6067
6067
|
};
|
|
6068
6068
|
}());
|
|
6069
|
+
// WorkModes
|
|
6070
|
+
_defineProperty(Services, "getWorkModes", /*#__PURE__*/function () {
|
|
6071
|
+
var _ref326 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee326(size, page, query, visibility) {
|
|
6072
|
+
return _regeneratorRuntime.wrap(function _callee326$(_context326) {
|
|
6073
|
+
while (1) switch (_context326.prev = _context326.next) {
|
|
6074
|
+
case 0:
|
|
6075
|
+
_context326.next = 2;
|
|
6076
|
+
return api.get("/workmodes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
6077
|
+
case 2:
|
|
6078
|
+
return _context326.abrupt("return", _context326.sent);
|
|
6079
|
+
case 3:
|
|
6080
|
+
case "end":
|
|
6081
|
+
return _context326.stop();
|
|
6082
|
+
}
|
|
6083
|
+
}, _callee326);
|
|
6084
|
+
}));
|
|
6085
|
+
return function (_x499, _x500, _x501, _x502) {
|
|
6086
|
+
return _ref326.apply(this, arguments);
|
|
6087
|
+
};
|
|
6088
|
+
}());
|
|
6089
|
+
_defineProperty(Services, "getWorkModesAll", /*#__PURE__*/function () {
|
|
6090
|
+
var _ref327 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee327(visibility) {
|
|
6091
|
+
return _regeneratorRuntime.wrap(function _callee327$(_context327) {
|
|
6092
|
+
while (1) switch (_context327.prev = _context327.next) {
|
|
6093
|
+
case 0:
|
|
6094
|
+
_context327.next = 2;
|
|
6095
|
+
return api.get("/workmodes?visibility=".concat(visibility));
|
|
6096
|
+
case 2:
|
|
6097
|
+
return _context327.abrupt("return", _context327.sent);
|
|
6098
|
+
case 3:
|
|
6099
|
+
case "end":
|
|
6100
|
+
return _context327.stop();
|
|
6101
|
+
}
|
|
6102
|
+
}, _callee327);
|
|
6103
|
+
}));
|
|
6104
|
+
return function (_x503) {
|
|
6105
|
+
return _ref327.apply(this, arguments);
|
|
6106
|
+
};
|
|
6107
|
+
}());
|
|
6108
|
+
_defineProperty(Services, "addWorkModes", /*#__PURE__*/function () {
|
|
6109
|
+
var _ref328 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee328(data) {
|
|
6110
|
+
return _regeneratorRuntime.wrap(function _callee328$(_context328) {
|
|
6111
|
+
while (1) switch (_context328.prev = _context328.next) {
|
|
6112
|
+
case 0:
|
|
6113
|
+
_context328.next = 2;
|
|
6114
|
+
return api.post("/workmodes", data, {
|
|
6115
|
+
headers: {
|
|
6116
|
+
"Content-Type": "application/json"
|
|
6117
|
+
}
|
|
6118
|
+
});
|
|
6119
|
+
case 2:
|
|
6120
|
+
return _context328.abrupt("return", _context328.sent);
|
|
6121
|
+
case 3:
|
|
6122
|
+
case "end":
|
|
6123
|
+
return _context328.stop();
|
|
6124
|
+
}
|
|
6125
|
+
}, _callee328);
|
|
6126
|
+
}));
|
|
6127
|
+
return function (_x504) {
|
|
6128
|
+
return _ref328.apply(this, arguments);
|
|
6129
|
+
};
|
|
6130
|
+
}());
|
|
6131
|
+
_defineProperty(Services, "editWorkModes", /*#__PURE__*/function () {
|
|
6132
|
+
var _ref329 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee329(value) {
|
|
6133
|
+
return _regeneratorRuntime.wrap(function _callee329$(_context329) {
|
|
6134
|
+
while (1) switch (_context329.prev = _context329.next) {
|
|
6135
|
+
case 0:
|
|
6136
|
+
_context329.next = 2;
|
|
6137
|
+
return api.put("/workmodes/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
6138
|
+
case 2:
|
|
6139
|
+
return _context329.abrupt("return", _context329.sent);
|
|
6140
|
+
case 3:
|
|
6141
|
+
case "end":
|
|
6142
|
+
return _context329.stop();
|
|
6143
|
+
}
|
|
6144
|
+
}, _callee329);
|
|
6145
|
+
}));
|
|
6146
|
+
return function (_x505) {
|
|
6147
|
+
return _ref329.apply(this, arguments);
|
|
6148
|
+
};
|
|
6149
|
+
}());
|
|
6150
|
+
_defineProperty(Services, "deleteWorkModes", /*#__PURE__*/function () {
|
|
6151
|
+
var _ref330 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee330(id) {
|
|
6152
|
+
return _regeneratorRuntime.wrap(function _callee330$(_context330) {
|
|
6153
|
+
while (1) switch (_context330.prev = _context330.next) {
|
|
6154
|
+
case 0:
|
|
6155
|
+
_context330.next = 2;
|
|
6156
|
+
return api["delete"]("/workmodes/".concat(id));
|
|
6157
|
+
case 2:
|
|
6158
|
+
return _context330.abrupt("return", _context330.sent);
|
|
6159
|
+
case 3:
|
|
6160
|
+
case "end":
|
|
6161
|
+
return _context330.stop();
|
|
6162
|
+
}
|
|
6163
|
+
}, _callee330);
|
|
6164
|
+
}));
|
|
6165
|
+
return function (_x506) {
|
|
6166
|
+
return _ref330.apply(this, arguments);
|
|
6167
|
+
};
|
|
6168
|
+
}());
|
|
6169
|
+
_defineProperty(Services, "workModesVisibility", /*#__PURE__*/function () {
|
|
6170
|
+
var _ref331 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee331(data) {
|
|
6171
|
+
return _regeneratorRuntime.wrap(function _callee331$(_context331) {
|
|
6172
|
+
while (1) switch (_context331.prev = _context331.next) {
|
|
6173
|
+
case 0:
|
|
6174
|
+
_context331.next = 2;
|
|
6175
|
+
return api.patch("/workmodes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
6176
|
+
case 2:
|
|
6177
|
+
return _context331.abrupt("return", _context331.sent);
|
|
6178
|
+
case 3:
|
|
6179
|
+
case "end":
|
|
6180
|
+
return _context331.stop();
|
|
6181
|
+
}
|
|
6182
|
+
}, _callee331);
|
|
6183
|
+
}));
|
|
6184
|
+
return function (_x507) {
|
|
6185
|
+
return _ref331.apply(this, arguments);
|
|
6186
|
+
};
|
|
6187
|
+
}());
|
|
6188
|
+
// Vehicle Categories
|
|
6189
|
+
_defineProperty(Services, "getVehicleCategories", /*#__PURE__*/function () {
|
|
6190
|
+
var _ref332 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee332(size, page, query, visibility) {
|
|
6191
|
+
return _regeneratorRuntime.wrap(function _callee332$(_context332) {
|
|
6192
|
+
while (1) switch (_context332.prev = _context332.next) {
|
|
6193
|
+
case 0:
|
|
6194
|
+
_context332.next = 2;
|
|
6195
|
+
return api.get("/vehiclecategories/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
6196
|
+
case 2:
|
|
6197
|
+
return _context332.abrupt("return", _context332.sent);
|
|
6198
|
+
case 3:
|
|
6199
|
+
case "end":
|
|
6200
|
+
return _context332.stop();
|
|
6201
|
+
}
|
|
6202
|
+
}, _callee332);
|
|
6203
|
+
}));
|
|
6204
|
+
return function (_x508, _x509, _x510, _x511) {
|
|
6205
|
+
return _ref332.apply(this, arguments);
|
|
6206
|
+
};
|
|
6207
|
+
}());
|
|
6208
|
+
_defineProperty(Services, "getVehicleCategoriesAll", /*#__PURE__*/function () {
|
|
6209
|
+
var _ref333 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee333(visibility) {
|
|
6210
|
+
return _regeneratorRuntime.wrap(function _callee333$(_context333) {
|
|
6211
|
+
while (1) switch (_context333.prev = _context333.next) {
|
|
6212
|
+
case 0:
|
|
6213
|
+
_context333.next = 2;
|
|
6214
|
+
return api.get("/vehiclecategories?visibility=".concat(visibility));
|
|
6215
|
+
case 2:
|
|
6216
|
+
return _context333.abrupt("return", _context333.sent);
|
|
6217
|
+
case 3:
|
|
6218
|
+
case "end":
|
|
6219
|
+
return _context333.stop();
|
|
6220
|
+
}
|
|
6221
|
+
}, _callee333);
|
|
6222
|
+
}));
|
|
6223
|
+
return function (_x512) {
|
|
6224
|
+
return _ref333.apply(this, arguments);
|
|
6225
|
+
};
|
|
6226
|
+
}());
|
|
6227
|
+
_defineProperty(Services, "addVehicleCategories", /*#__PURE__*/function () {
|
|
6228
|
+
var _ref334 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee334(data) {
|
|
6229
|
+
return _regeneratorRuntime.wrap(function _callee334$(_context334) {
|
|
6230
|
+
while (1) switch (_context334.prev = _context334.next) {
|
|
6231
|
+
case 0:
|
|
6232
|
+
_context334.next = 2;
|
|
6233
|
+
return api.post("/vehiclecategories", data, {
|
|
6234
|
+
headers: {
|
|
6235
|
+
"Content-Type": "application/json"
|
|
6236
|
+
}
|
|
6237
|
+
});
|
|
6238
|
+
case 2:
|
|
6239
|
+
return _context334.abrupt("return", _context334.sent);
|
|
6240
|
+
case 3:
|
|
6241
|
+
case "end":
|
|
6242
|
+
return _context334.stop();
|
|
6243
|
+
}
|
|
6244
|
+
}, _callee334);
|
|
6245
|
+
}));
|
|
6246
|
+
return function (_x513) {
|
|
6247
|
+
return _ref334.apply(this, arguments);
|
|
6248
|
+
};
|
|
6249
|
+
}());
|
|
6250
|
+
_defineProperty(Services, "editVehicleCategories", /*#__PURE__*/function () {
|
|
6251
|
+
var _ref335 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee335(value) {
|
|
6252
|
+
return _regeneratorRuntime.wrap(function _callee335$(_context335) {
|
|
6253
|
+
while (1) switch (_context335.prev = _context335.next) {
|
|
6254
|
+
case 0:
|
|
6255
|
+
_context335.next = 2;
|
|
6256
|
+
return api.put("/vehiclecategories/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
6257
|
+
case 2:
|
|
6258
|
+
return _context335.abrupt("return", _context335.sent);
|
|
6259
|
+
case 3:
|
|
6260
|
+
case "end":
|
|
6261
|
+
return _context335.stop();
|
|
6262
|
+
}
|
|
6263
|
+
}, _callee335);
|
|
6264
|
+
}));
|
|
6265
|
+
return function (_x514) {
|
|
6266
|
+
return _ref335.apply(this, arguments);
|
|
6267
|
+
};
|
|
6268
|
+
}());
|
|
6269
|
+
_defineProperty(Services, "deleteVehicleCategories", /*#__PURE__*/function () {
|
|
6270
|
+
var _ref336 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee336(id) {
|
|
6271
|
+
return _regeneratorRuntime.wrap(function _callee336$(_context336) {
|
|
6272
|
+
while (1) switch (_context336.prev = _context336.next) {
|
|
6273
|
+
case 0:
|
|
6274
|
+
_context336.next = 2;
|
|
6275
|
+
return api["delete"]("/vehiclecategories/".concat(id));
|
|
6276
|
+
case 2:
|
|
6277
|
+
return _context336.abrupt("return", _context336.sent);
|
|
6278
|
+
case 3:
|
|
6279
|
+
case "end":
|
|
6280
|
+
return _context336.stop();
|
|
6281
|
+
}
|
|
6282
|
+
}, _callee336);
|
|
6283
|
+
}));
|
|
6284
|
+
return function (_x515) {
|
|
6285
|
+
return _ref336.apply(this, arguments);
|
|
6286
|
+
};
|
|
6287
|
+
}());
|
|
6288
|
+
_defineProperty(Services, "vehicleCategoriesVisibility", /*#__PURE__*/function () {
|
|
6289
|
+
var _ref337 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee337(data) {
|
|
6290
|
+
return _regeneratorRuntime.wrap(function _callee337$(_context337) {
|
|
6291
|
+
while (1) switch (_context337.prev = _context337.next) {
|
|
6292
|
+
case 0:
|
|
6293
|
+
_context337.next = 2;
|
|
6294
|
+
return api.patch("/vehiclecategories/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
6295
|
+
case 2:
|
|
6296
|
+
return _context337.abrupt("return", _context337.sent);
|
|
6297
|
+
case 3:
|
|
6298
|
+
case "end":
|
|
6299
|
+
return _context337.stop();
|
|
6300
|
+
}
|
|
6301
|
+
}, _callee337);
|
|
6302
|
+
}));
|
|
6303
|
+
return function (_x516) {
|
|
6304
|
+
return _ref337.apply(this, arguments);
|
|
6305
|
+
};
|
|
6306
|
+
}());
|
|
6069
6307
|
export default Services;
|
package/dist/utils/path.js
CHANGED
|
@@ -107,4 +107,8 @@ export var QUESTIONNAIRES_ORDERS = QUESTIONNAIRES + "/orders";
|
|
|
107
107
|
export var SETTINGS_QUESTIONNAIRES_CONTRAGENTTYPES = SETTINGS_QUESTIONNAIRES + "/contragenttypes";
|
|
108
108
|
export var SETTINGS_QUESTIONNAIRES_CONTRACTTYPES = SETTINGS_QUESTIONNAIRES + "/contracttypes";
|
|
109
109
|
export var SETTINGS_QUESTIONNAIRES_CONTRACTCURRENCIES = SETTINGS_QUESTIONNAIRES + "/contractcurrencies";
|
|
110
|
-
export var SETTINGS_QUESTIONNAIRES_ORDERS = SETTINGS_QUESTIONNAIRES + "/orders";
|
|
110
|
+
export var SETTINGS_QUESTIONNAIRES_ORDERS = SETTINGS_QUESTIONNAIRES + "/orders";
|
|
111
|
+
export var SETTINGS_QUESTIONNAIRES_WORK_MODES = SETTINGS_QUESTIONNAIRES + "/work-modes";
|
|
112
|
+
export var QUESTIONNAIRES_WORK_MODES = QUESTIONNAIRES + "/work-modes";
|
|
113
|
+
export var SETTINGS_QUESTIONNAIRES_VEHICLE_CATEGORIES = SETTINGS_QUESTIONNAIRES + "/vehicle-categories";
|
|
114
|
+
export var QUESTIONNAIRES_VEHICLE_CATEGORIES = QUESTIONNAIRES + "/vehicle-categories";
|