@banch0u/core-project-test-repository 2.1.11 → 2.1.13

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.
@@ -8260,4 +8260,132 @@ _defineProperty(Services, "defaultAgreementPlansVisibility", /*#__PURE__*/functi
8260
8260
  return _ref434.apply(this, arguments);
8261
8261
  };
8262
8262
  }());
8263
+ // ---- end generated ----
8264
+ // ---- generated by questionnaireGenerator: RouteLocations ----
8265
+ _defineProperty(Services, "getRouteLocations", /*#__PURE__*/function () {
8266
+ var _ref435 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee435(size, page, query, visibility) {
8267
+ var response;
8268
+ return _regeneratorRuntime.wrap(function _callee435$(_context435) {
8269
+ while (1) switch (_context435.prev = _context435.next) {
8270
+ case 0:
8271
+ _context435.next = 2;
8272
+ return api.get("/routelocations/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
8273
+ case 2:
8274
+ response = _context435.sent;
8275
+ return _context435.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8276
+ case 4:
8277
+ case "end":
8278
+ return _context435.stop();
8279
+ }
8280
+ }, _callee435);
8281
+ }));
8282
+ return function (_x664, _x665, _x666, _x667) {
8283
+ return _ref435.apply(this, arguments);
8284
+ };
8285
+ }());
8286
+ _defineProperty(Services, "getRouteLocationsAll", /*#__PURE__*/function () {
8287
+ var _ref436 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee436(visibility) {
8288
+ var response;
8289
+ return _regeneratorRuntime.wrap(function _callee436$(_context436) {
8290
+ while (1) switch (_context436.prev = _context436.next) {
8291
+ case 0:
8292
+ _context436.next = 2;
8293
+ return api.get("/routelocations?visibility=".concat(visibility));
8294
+ case 2:
8295
+ response = _context436.sent;
8296
+ return _context436.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8297
+ case 4:
8298
+ case "end":
8299
+ return _context436.stop();
8300
+ }
8301
+ }, _callee436);
8302
+ }));
8303
+ return function (_x668) {
8304
+ return _ref436.apply(this, arguments);
8305
+ };
8306
+ }());
8307
+ _defineProperty(Services, "addRouteLocations", /*#__PURE__*/function () {
8308
+ var _ref437 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee437(value) {
8309
+ var response;
8310
+ return _regeneratorRuntime.wrap(function _callee437$(_context437) {
8311
+ while (1) switch (_context437.prev = _context437.next) {
8312
+ case 0:
8313
+ _context437.next = 2;
8314
+ return api.post("/routelocations", value);
8315
+ case 2:
8316
+ response = _context437.sent;
8317
+ return _context437.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8318
+ case 4:
8319
+ case "end":
8320
+ return _context437.stop();
8321
+ }
8322
+ }, _callee437);
8323
+ }));
8324
+ return function (_x669) {
8325
+ return _ref437.apply(this, arguments);
8326
+ };
8327
+ }());
8328
+ _defineProperty(Services, "editRouteLocations", /*#__PURE__*/function () {
8329
+ var _ref438 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee438(data) {
8330
+ var response;
8331
+ return _regeneratorRuntime.wrap(function _callee438$(_context438) {
8332
+ while (1) switch (_context438.prev = _context438.next) {
8333
+ case 0:
8334
+ _context438.next = 2;
8335
+ return api.put("/routelocations/".concat(data === null || data === void 0 ? void 0 : data.id), data);
8336
+ case 2:
8337
+ response = _context438.sent;
8338
+ return _context438.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8339
+ case 4:
8340
+ case "end":
8341
+ return _context438.stop();
8342
+ }
8343
+ }, _callee438);
8344
+ }));
8345
+ return function (_x670) {
8346
+ return _ref438.apply(this, arguments);
8347
+ };
8348
+ }());
8349
+ _defineProperty(Services, "deleteRouteLocations", /*#__PURE__*/function () {
8350
+ var _ref439 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee439(id) {
8351
+ var response;
8352
+ return _regeneratorRuntime.wrap(function _callee439$(_context439) {
8353
+ while (1) switch (_context439.prev = _context439.next) {
8354
+ case 0:
8355
+ _context439.next = 2;
8356
+ return api["delete"]("/routelocations/".concat(id));
8357
+ case 2:
8358
+ response = _context439.sent;
8359
+ return _context439.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8360
+ case 4:
8361
+ case "end":
8362
+ return _context439.stop();
8363
+ }
8364
+ }, _callee439);
8365
+ }));
8366
+ return function (_x671) {
8367
+ return _ref439.apply(this, arguments);
8368
+ };
8369
+ }());
8370
+ _defineProperty(Services, "routeLocationsVisibility", /*#__PURE__*/function () {
8371
+ var _ref440 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee440(data) {
8372
+ var response;
8373
+ return _regeneratorRuntime.wrap(function _callee440$(_context440) {
8374
+ while (1) switch (_context440.prev = _context440.next) {
8375
+ case 0:
8376
+ _context440.next = 2;
8377
+ return api.patch("/routelocations/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
8378
+ case 2:
8379
+ response = _context440.sent;
8380
+ return _context440.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8381
+ case 4:
8382
+ case "end":
8383
+ return _context440.stop();
8384
+ }
8385
+ }, _callee440);
8386
+ }));
8387
+ return function (_x672) {
8388
+ return _ref440.apply(this, arguments);
8389
+ };
8390
+ }());
8263
8391
  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 = "DefaultAgreementPlans"; // change as needed
14
- var constantColumnName = "Şablon razılaşma sxemi";
15
- var endpointName = "/defaultagreementplans";
13
+ var questionnaireName = "RouteLocations"; // change as needed
14
+ var constantColumnName = "Göndərilən yerlər";
15
+ var endpointName = "/routelocations";
16
16
  ///////////////////////////////////
17
17
 
18
18
  var upperName = questionnaireName.toUpperCase();
@@ -2,6 +2,10 @@ export var LOGIN_PATH = "/login";
2
2
  export var PLATFORM_PATH = "/platform";
3
3
  export var QUESTIONNAIRES = "/questionnaires";
4
4
 
5
+ // ---- generated by questionnaireGenerator: ROUTELOCATIONS ----
6
+ export var QUESTIONNAIRES_ROUTELOCATIONS = QUESTIONNAIRES + "/routelocations";
7
+ // ---- end generated ----
8
+
5
9
  // ---- generated by questionnaireGenerator: DEFAULTAGREEMENTPLANS ----
6
10
  export var QUESTIONNAIRES_DEFAULTAGREEMENTPLANS = QUESTIONNAIRES + "/defaultagreementplans";
7
11
  // ---- end generated ----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [