@banch0u/core-project-test-repository 1.10.3 → 1.10.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.
@@ -6304,4 +6304,123 @@ _defineProperty(Services, "vehicleCategoriesVisibility", /*#__PURE__*/function (
6304
6304
  return _ref337.apply(this, arguments);
6305
6305
  };
6306
6306
  }());
6307
+ // Vehicle Categories
6308
+ _defineProperty(Services, "getChemicals", /*#__PURE__*/function () {
6309
+ var _ref338 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee338(size, page, query, visibility) {
6310
+ return _regeneratorRuntime.wrap(function _callee338$(_context338) {
6311
+ while (1) switch (_context338.prev = _context338.next) {
6312
+ case 0:
6313
+ _context338.next = 2;
6314
+ return api.get("/chemicals/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
6315
+ case 2:
6316
+ return _context338.abrupt("return", _context338.sent);
6317
+ case 3:
6318
+ case "end":
6319
+ return _context338.stop();
6320
+ }
6321
+ }, _callee338);
6322
+ }));
6323
+ return function (_x517, _x518, _x519, _x520) {
6324
+ return _ref338.apply(this, arguments);
6325
+ };
6326
+ }());
6327
+ _defineProperty(Services, "getChemicalsAll", /*#__PURE__*/function () {
6328
+ var _ref339 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee339(visibility) {
6329
+ return _regeneratorRuntime.wrap(function _callee339$(_context339) {
6330
+ while (1) switch (_context339.prev = _context339.next) {
6331
+ case 0:
6332
+ _context339.next = 2;
6333
+ return api.get("/chemicals?visibility=".concat(visibility));
6334
+ case 2:
6335
+ return _context339.abrupt("return", _context339.sent);
6336
+ case 3:
6337
+ case "end":
6338
+ return _context339.stop();
6339
+ }
6340
+ }, _callee339);
6341
+ }));
6342
+ return function (_x521) {
6343
+ return _ref339.apply(this, arguments);
6344
+ };
6345
+ }());
6346
+ _defineProperty(Services, "addChemicals", /*#__PURE__*/function () {
6347
+ var _ref340 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee340(data) {
6348
+ return _regeneratorRuntime.wrap(function _callee340$(_context340) {
6349
+ while (1) switch (_context340.prev = _context340.next) {
6350
+ case 0:
6351
+ _context340.next = 2;
6352
+ return api.post("/chemicals", data, {
6353
+ headers: {
6354
+ "Content-Type": "application/json"
6355
+ }
6356
+ });
6357
+ case 2:
6358
+ return _context340.abrupt("return", _context340.sent);
6359
+ case 3:
6360
+ case "end":
6361
+ return _context340.stop();
6362
+ }
6363
+ }, _callee340);
6364
+ }));
6365
+ return function (_x522) {
6366
+ return _ref340.apply(this, arguments);
6367
+ };
6368
+ }());
6369
+ _defineProperty(Services, "editChemicals", /*#__PURE__*/function () {
6370
+ var _ref341 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee341(value) {
6371
+ return _regeneratorRuntime.wrap(function _callee341$(_context341) {
6372
+ while (1) switch (_context341.prev = _context341.next) {
6373
+ case 0:
6374
+ _context341.next = 2;
6375
+ return api.put("/chemicals/".concat(value === null || value === void 0 ? void 0 : value.id), value);
6376
+ case 2:
6377
+ return _context341.abrupt("return", _context341.sent);
6378
+ case 3:
6379
+ case "end":
6380
+ return _context341.stop();
6381
+ }
6382
+ }, _callee341);
6383
+ }));
6384
+ return function (_x523) {
6385
+ return _ref341.apply(this, arguments);
6386
+ };
6387
+ }());
6388
+ _defineProperty(Services, "deleteChemicals", /*#__PURE__*/function () {
6389
+ var _ref342 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee342(id) {
6390
+ return _regeneratorRuntime.wrap(function _callee342$(_context342) {
6391
+ while (1) switch (_context342.prev = _context342.next) {
6392
+ case 0:
6393
+ _context342.next = 2;
6394
+ return api["delete"]("/chemicals/".concat(id));
6395
+ case 2:
6396
+ return _context342.abrupt("return", _context342.sent);
6397
+ case 3:
6398
+ case "end":
6399
+ return _context342.stop();
6400
+ }
6401
+ }, _callee342);
6402
+ }));
6403
+ return function (_x524) {
6404
+ return _ref342.apply(this, arguments);
6405
+ };
6406
+ }());
6407
+ _defineProperty(Services, "chemicalsVisibility", /*#__PURE__*/function () {
6408
+ var _ref343 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee343(data) {
6409
+ return _regeneratorRuntime.wrap(function _callee343$(_context343) {
6410
+ while (1) switch (_context343.prev = _context343.next) {
6411
+ case 0:
6412
+ _context343.next = 2;
6413
+ return api.patch("/chemicals/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
6414
+ case 2:
6415
+ return _context343.abrupt("return", _context343.sent);
6416
+ case 3:
6417
+ case "end":
6418
+ return _context343.stop();
6419
+ }
6420
+ }, _callee343);
6421
+ }));
6422
+ return function (_x525) {
6423
+ return _ref343.apply(this, arguments);
6424
+ };
6425
+ }());
6307
6426
  export default Services;
@@ -111,4 +111,6 @@ export var SETTINGS_QUESTIONNAIRES_ORDERS = SETTINGS_QUESTIONNAIRES + "/orders";
111
111
  export var SETTINGS_QUESTIONNAIRES_WORK_MODES = SETTINGS_QUESTIONNAIRES + "/work-modes";
112
112
  export var QUESTIONNAIRES_WORK_MODES = QUESTIONNAIRES + "/work-modes";
113
113
  export var SETTINGS_QUESTIONNAIRES_VEHICLE_CATEGORIES = SETTINGS_QUESTIONNAIRES + "/vehicle-categories";
114
- export var QUESTIONNAIRES_VEHICLE_CATEGORIES = QUESTIONNAIRES + "/vehicle-categories";
114
+ export var QUESTIONNAIRES_VEHICLE_CATEGORIES = QUESTIONNAIRES + "/vehicle-categories";
115
+ export var QUESTIONNAIRES_CHEMICALS = QUESTIONNAIRES + "/chemicals";
116
+ export var SETTINGS_QUESTIONNAIRES_CHEMICHALS = SETTINGS_QUESTIONNAIRES + "/chemicals";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "1.10.3",
3
+ "version": "1.10.4",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [