@banch0u/core-project-test-repository 2.1.4 → 2.1.8

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.
@@ -8132,4 +8132,132 @@ _defineProperty(Services, "contractTypesSubtypesVisibility", /*#__PURE__*/functi
8132
8132
  return _ref428.apply(this, arguments);
8133
8133
  };
8134
8134
  }());
8135
+ // ---- end generated ----
8136
+ // ---- generated by questionnaireGenerator: DefaultAgreementPlans ----
8137
+ _defineProperty(Services, "getDefaultAgreementPlans", /*#__PURE__*/function () {
8138
+ var _ref429 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee429(size, page, query, visibility) {
8139
+ var response;
8140
+ return _regeneratorRuntime.wrap(function _callee429$(_context429) {
8141
+ while (1) switch (_context429.prev = _context429.next) {
8142
+ case 0:
8143
+ _context429.next = 2;
8144
+ return api.get("/defaultagreementplans/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
8145
+ case 2:
8146
+ response = _context429.sent;
8147
+ return _context429.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8148
+ case 4:
8149
+ case "end":
8150
+ return _context429.stop();
8151
+ }
8152
+ }, _callee429);
8153
+ }));
8154
+ return function (_x655, _x656, _x657, _x658) {
8155
+ return _ref429.apply(this, arguments);
8156
+ };
8157
+ }());
8158
+ _defineProperty(Services, "getDefaultAgreementPlansAll", /*#__PURE__*/function () {
8159
+ var _ref430 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee430(visibility) {
8160
+ var response;
8161
+ return _regeneratorRuntime.wrap(function _callee430$(_context430) {
8162
+ while (1) switch (_context430.prev = _context430.next) {
8163
+ case 0:
8164
+ _context430.next = 2;
8165
+ return api.get("/defaultagreementplans?visibility=".concat(visibility));
8166
+ case 2:
8167
+ response = _context430.sent;
8168
+ return _context430.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8169
+ case 4:
8170
+ case "end":
8171
+ return _context430.stop();
8172
+ }
8173
+ }, _callee430);
8174
+ }));
8175
+ return function (_x659) {
8176
+ return _ref430.apply(this, arguments);
8177
+ };
8178
+ }());
8179
+ _defineProperty(Services, "addDefaultAgreementPlans", /*#__PURE__*/function () {
8180
+ var _ref431 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee431(value) {
8181
+ var response;
8182
+ return _regeneratorRuntime.wrap(function _callee431$(_context431) {
8183
+ while (1) switch (_context431.prev = _context431.next) {
8184
+ case 0:
8185
+ _context431.next = 2;
8186
+ return api.post("/defaultagreementplans", value);
8187
+ case 2:
8188
+ response = _context431.sent;
8189
+ return _context431.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8190
+ case 4:
8191
+ case "end":
8192
+ return _context431.stop();
8193
+ }
8194
+ }, _callee431);
8195
+ }));
8196
+ return function (_x660) {
8197
+ return _ref431.apply(this, arguments);
8198
+ };
8199
+ }());
8200
+ _defineProperty(Services, "editDefaultAgreementPlans", /*#__PURE__*/function () {
8201
+ var _ref432 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee432(data) {
8202
+ var response;
8203
+ return _regeneratorRuntime.wrap(function _callee432$(_context432) {
8204
+ while (1) switch (_context432.prev = _context432.next) {
8205
+ case 0:
8206
+ _context432.next = 2;
8207
+ return api.put("/defaultagreementplans/".concat(data === null || data === void 0 ? void 0 : data.id), data);
8208
+ case 2:
8209
+ response = _context432.sent;
8210
+ return _context432.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8211
+ case 4:
8212
+ case "end":
8213
+ return _context432.stop();
8214
+ }
8215
+ }, _callee432);
8216
+ }));
8217
+ return function (_x661) {
8218
+ return _ref432.apply(this, arguments);
8219
+ };
8220
+ }());
8221
+ _defineProperty(Services, "deleteDefaultAgreementPlans", /*#__PURE__*/function () {
8222
+ var _ref433 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee433(id) {
8223
+ var response;
8224
+ return _regeneratorRuntime.wrap(function _callee433$(_context433) {
8225
+ while (1) switch (_context433.prev = _context433.next) {
8226
+ case 0:
8227
+ _context433.next = 2;
8228
+ return api["delete"]("/defaultagreementplans/".concat(id));
8229
+ case 2:
8230
+ response = _context433.sent;
8231
+ return _context433.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8232
+ case 4:
8233
+ case "end":
8234
+ return _context433.stop();
8235
+ }
8236
+ }, _callee433);
8237
+ }));
8238
+ return function (_x662) {
8239
+ return _ref433.apply(this, arguments);
8240
+ };
8241
+ }());
8242
+ _defineProperty(Services, "defaultAgreementPlansVisibility", /*#__PURE__*/function () {
8243
+ var _ref434 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee434(data) {
8244
+ var response;
8245
+ return _regeneratorRuntime.wrap(function _callee434$(_context434) {
8246
+ while (1) switch (_context434.prev = _context434.next) {
8247
+ case 0:
8248
+ _context434.next = 2;
8249
+ return api.patch("/defaultagreementplans/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
8250
+ case 2:
8251
+ response = _context434.sent;
8252
+ return _context434.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8253
+ case 4:
8254
+ case "end":
8255
+ return _context434.stop();
8256
+ }
8257
+ }, _callee434);
8258
+ }));
8259
+ return function (_x663) {
8260
+ return _ref434.apply(this, arguments);
8261
+ };
8262
+ }());
8135
8263
  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 = "ContractTypesSubtypes"; // change as needed
14
- var constantColumnName = "Müqavilə alt növü";
15
- var endpointName = "/contracttypes/subtypes";
13
+ var questionnaireName = "DefaultAgreementPlans"; // change as needed
14
+ var constantColumnName = "Şablon razılaşma sxemi";
15
+ var endpointName = "/defaultagreementplans";
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: DEFAULTAGREEMENTPLANS ----
6
+ export var QUESTIONNAIRES_DEFAULTAGREEMENTPLANS = QUESTIONNAIRES + "/defaultagreementplans";
7
+ // ---- end generated ----
8
+
5
9
  // ---- generated by questionnaireGenerator: CONTRACTTYPESSUBTYPES ----
6
10
  export var QUESTIONNAIRES_CONTRACTTYPESSUBTYPES = QUESTIONNAIRES + "/contracttypes/subtypes";
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.4",
3
+ "version": "2.1.8",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [