@banch0u/core-project-test-repository 1.8.4 → 1.9.1

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.
Files changed (83) hide show
  1. package/dist/assets/css/antd.css +723 -0
  2. package/dist/assets/icons/index.js +182 -0
  3. package/dist/components/Button/index.module.scss +17 -5
  4. package/dist/components/ColSort/index.module.scss +22 -0
  5. package/dist/components/Delete/Delete.js +22 -0
  6. package/dist/components/Delete/Delete.module.scss +22 -0
  7. package/dist/components/DeleteModal/DeleteModal.js +31 -0
  8. package/dist/components/DeleteModal/DeleteModal.module.scss +11 -0
  9. package/dist/components/Filter/index.js +1 -1
  10. package/dist/components/Input/index.js +34 -6
  11. package/dist/components/Input/index.module.scss +55 -23
  12. package/dist/components/ProfileOptions/index.module.scss +3 -3
  13. package/dist/components/Select/index.js +47 -60
  14. package/dist/components/Select/index.module.scss +32 -0
  15. package/dist/components/Success/Success.js +19 -0
  16. package/dist/components/Success/Success.module.scss +26 -0
  17. package/dist/components/Table/index.js +4 -2
  18. package/dist/components/ViewModal/index.js +30 -0
  19. package/dist/helpers/paginationLength.js +3 -0
  20. package/dist/helpers/querySearch.js +22 -0
  21. package/dist/index.js +2 -0
  22. package/dist/layout/Header/AppSelect/index.js +28 -9
  23. package/dist/layout/Header/AppSelect/index.module.scss +6 -1
  24. package/dist/layout/Portal/index.js +23 -0
  25. package/dist/layout/QuestionnairesLayout/index.js +17 -0
  26. package/dist/layout/QuestionnairesLayout/index.module.scss +0 -0
  27. package/dist/layout/QuestionnairesSidebar/index.js +162 -0
  28. package/dist/layout/QuestionnairesSidebar/index.module.scss +76 -0
  29. package/dist/pages/Questionnnaires/Questionnaires.module.scss +194 -0
  30. package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/constant.js +58 -0
  31. package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +255 -0
  32. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/constant.js +58 -0
  33. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +247 -0
  34. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/constant.js +58 -0
  35. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +247 -0
  36. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/constant.js +58 -0
  37. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +247 -0
  38. package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/constant.js +58 -0
  39. package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +247 -0
  40. package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/constant.js +58 -0
  41. package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +247 -0
  42. package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/constant.js +58 -0
  43. package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +258 -0
  44. package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +58 -0
  45. package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +284 -0
  46. package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/constant.js +82 -0
  47. package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +331 -0
  48. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/constant.js +58 -0
  49. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +247 -0
  50. package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/constant.js +58 -0
  51. package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +258 -0
  52. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/constant.js +58 -0
  53. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +247 -0
  54. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/constant.js +58 -0
  55. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +247 -0
  56. package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/constant.js +58 -0
  57. package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +249 -0
  58. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/constant.js +58 -0
  59. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +290 -0
  60. package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/constant.js +88 -0
  61. package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +320 -0
  62. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/constant.js +58 -0
  63. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +247 -0
  64. package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/constant.js +58 -0
  65. package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/index.js +240 -0
  66. package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/constant.js +58 -0
  67. package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +247 -0
  68. package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/constant.js +58 -0
  69. package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +317 -0
  70. package/dist/pages/Questionnnaires/QuestionnairesTopicContent/constant.js +58 -0
  71. package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +271 -0
  72. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/constant.js +58 -0
  73. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +247 -0
  74. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/constant.js +58 -0
  75. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +247 -0
  76. package/dist/pages/Questionnnaires/index.js +5 -0
  77. package/dist/routes/QuestionnaireRoutes.js +178 -0
  78. package/dist/store/slices/global/index.js +174 -3
  79. package/dist/store/slices/questionnaire/index.js +5139 -0
  80. package/dist/store/slices/questionnaire/service.js +3030 -0
  81. package/dist/store/store.js +2 -1
  82. package/dist/utils/path.js +49 -1
  83. package/package.json +2 -1
@@ -0,0 +1,3030 @@
1
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _createClass from "@babel/runtime/helpers/createClass";
3
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
6
+ import { queryString } from "../../../helpers/querySearch";
7
+ import api from "../../../utils/axios";
8
+ var Services = /*#__PURE__*/_createClass(function Services() {
9
+ _classCallCheck(this, Services);
10
+ });
11
+ _defineProperty(Services, "getTopics", /*#__PURE__*/function () {
12
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(size, page, query, visibility, appealtypes) {
13
+ var response;
14
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
15
+ while (1) switch (_context.prev = _context.next) {
16
+ case 0:
17
+ _context.next = 2;
18
+ return api.get("/topics/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&appealtypes=").concat(appealtypes, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
19
+ case 2:
20
+ response = _context.sent;
21
+ return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
22
+ case 4:
23
+ case "end":
24
+ return _context.stop();
25
+ }
26
+ }, _callee);
27
+ }));
28
+ return function (_x, _x2, _x3, _x4, _x5) {
29
+ return _ref.apply(this, arguments);
30
+ };
31
+ }());
32
+ _defineProperty(Services, "getTopicsAll", /*#__PURE__*/function () {
33
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(visibility, appealtypes) {
34
+ var response;
35
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
36
+ while (1) switch (_context2.prev = _context2.next) {
37
+ case 0:
38
+ _context2.next = 2;
39
+ return api.get("/topics?visibility=".concat(visibility, "&appealtypes=").concat(appealtypes));
40
+ case 2:
41
+ response = _context2.sent;
42
+ return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
43
+ case 4:
44
+ case "end":
45
+ return _context2.stop();
46
+ }
47
+ }, _callee2);
48
+ }));
49
+ return function (_x6, _x7) {
50
+ return _ref2.apply(this, arguments);
51
+ };
52
+ }());
53
+ _defineProperty(Services, "addTopic", /*#__PURE__*/function () {
54
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(value) {
55
+ var response;
56
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
57
+ while (1) switch (_context3.prev = _context3.next) {
58
+ case 0:
59
+ _context3.next = 2;
60
+ return api.post("/topics", value);
61
+ case 2:
62
+ response = _context3.sent;
63
+ return _context3.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
64
+ case 4:
65
+ case "end":
66
+ return _context3.stop();
67
+ }
68
+ }, _callee3);
69
+ }));
70
+ return function (_x8) {
71
+ return _ref3.apply(this, arguments);
72
+ };
73
+ }());
74
+ _defineProperty(Services, "editTopic", /*#__PURE__*/function () {
75
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(data) {
76
+ var response;
77
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
78
+ while (1) switch (_context4.prev = _context4.next) {
79
+ case 0:
80
+ _context4.next = 2;
81
+ return api.put("/topics/".concat(data === null || data === void 0 ? void 0 : data.id), data);
82
+ case 2:
83
+ response = _context4.sent;
84
+ return _context4.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
85
+ case 4:
86
+ case "end":
87
+ return _context4.stop();
88
+ }
89
+ }, _callee4);
90
+ }));
91
+ return function (_x9) {
92
+ return _ref4.apply(this, arguments);
93
+ };
94
+ }());
95
+ _defineProperty(Services, "deleteTopic", /*#__PURE__*/function () {
96
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(id) {
97
+ var response;
98
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
99
+ while (1) switch (_context5.prev = _context5.next) {
100
+ case 0:
101
+ _context5.next = 2;
102
+ return api["delete"]("/topics/".concat(id));
103
+ case 2:
104
+ response = _context5.sent;
105
+ return _context5.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
106
+ case 4:
107
+ case "end":
108
+ return _context5.stop();
109
+ }
110
+ }, _callee5);
111
+ }));
112
+ return function (_x10) {
113
+ return _ref5.apply(this, arguments);
114
+ };
115
+ }());
116
+ _defineProperty(Services, "topicVisibility", /*#__PURE__*/function () {
117
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(data) {
118
+ var response;
119
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
120
+ while (1) switch (_context6.prev = _context6.next) {
121
+ case 0:
122
+ _context6.next = 2;
123
+ return api.patch("/topics/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
124
+ case 2:
125
+ response = _context6.sent;
126
+ return _context6.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
127
+ case 4:
128
+ case "end":
129
+ return _context6.stop();
130
+ }
131
+ }, _callee6);
132
+ }));
133
+ return function (_x11) {
134
+ return _ref6.apply(this, arguments);
135
+ };
136
+ }());
137
+ /*Subtopics */
138
+ _defineProperty(Services, "getSubtopics", /*#__PURE__*/function () {
139
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(size, page, topicId, query, visibility, appealtypes) {
140
+ var response;
141
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
142
+ while (1) switch (_context7.prev = _context7.next) {
143
+ case 0:
144
+ _context7.next = 2;
145
+ return api.get("/topics/".concat(topicId, "/subtopics/").concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&appealtypes=").concat(appealtypes, "&name=").concat(query.name));
146
+ case 2:
147
+ response = _context7.sent;
148
+ return _context7.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
149
+ case 4:
150
+ case "end":
151
+ return _context7.stop();
152
+ }
153
+ }, _callee7);
154
+ }));
155
+ return function (_x12, _x13, _x14, _x15, _x16, _x17) {
156
+ return _ref7.apply(this, arguments);
157
+ };
158
+ }());
159
+ _defineProperty(Services, "getSubtopicsAll", /*#__PURE__*/function () {
160
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(visibility, topicid, appealtypes) {
161
+ var response;
162
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
163
+ while (1) switch (_context8.prev = _context8.next) {
164
+ case 0:
165
+ _context8.next = 2;
166
+ return api.get("/topics/".concat(topicid, "/subtopics?visibility=").concat(visibility, "&appealtypes=").concat(appealtypes));
167
+ case 2:
168
+ response = _context8.sent;
169
+ return _context8.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
170
+ case 4:
171
+ case "end":
172
+ return _context8.stop();
173
+ }
174
+ }, _callee8);
175
+ }));
176
+ return function (_x18, _x19, _x20) {
177
+ return _ref8.apply(this, arguments);
178
+ };
179
+ }());
180
+ _defineProperty(Services, "addSubtopic", /*#__PURE__*/function () {
181
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(value) {
182
+ var response;
183
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
184
+ while (1) switch (_context9.prev = _context9.next) {
185
+ case 0:
186
+ _context9.next = 2;
187
+ return api.post("/topics/subtopics", value);
188
+ case 2:
189
+ response = _context9.sent;
190
+ return _context9.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
191
+ case 4:
192
+ case "end":
193
+ return _context9.stop();
194
+ }
195
+ }, _callee9);
196
+ }));
197
+ return function (_x21) {
198
+ return _ref9.apply(this, arguments);
199
+ };
200
+ }());
201
+ _defineProperty(Services, "editSubtopic", /*#__PURE__*/function () {
202
+ var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(data) {
203
+ var response;
204
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
205
+ while (1) switch (_context10.prev = _context10.next) {
206
+ case 0:
207
+ _context10.next = 2;
208
+ return api.put("/topics/subtopics/".concat(data === null || data === void 0 ? void 0 : data.id), data);
209
+ case 2:
210
+ response = _context10.sent;
211
+ return _context10.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
212
+ case 4:
213
+ case "end":
214
+ return _context10.stop();
215
+ }
216
+ }, _callee10);
217
+ }));
218
+ return function (_x22) {
219
+ return _ref10.apply(this, arguments);
220
+ };
221
+ }());
222
+ _defineProperty(Services, "deleteSubtopic", /*#__PURE__*/function () {
223
+ var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11(id) {
224
+ var response;
225
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
226
+ while (1) switch (_context11.prev = _context11.next) {
227
+ case 0:
228
+ _context11.next = 2;
229
+ return api["delete"]("/topics/subtopics/".concat(id));
230
+ case 2:
231
+ response = _context11.sent;
232
+ return _context11.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
233
+ case 4:
234
+ case "end":
235
+ return _context11.stop();
236
+ }
237
+ }, _callee11);
238
+ }));
239
+ return function (_x23) {
240
+ return _ref11.apply(this, arguments);
241
+ };
242
+ }());
243
+ _defineProperty(Services, "subtopicVisibility", /*#__PURE__*/function () {
244
+ var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(data) {
245
+ var response;
246
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
247
+ while (1) switch (_context12.prev = _context12.next) {
248
+ case 0:
249
+ _context12.next = 2;
250
+ return api.patch("/topics/subtopics/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
251
+ case 2:
252
+ response = _context12.sent;
253
+ return _context12.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
254
+ case 4:
255
+ case "end":
256
+ return _context12.stop();
257
+ }
258
+ }, _callee12);
259
+ }));
260
+ return function (_x24) {
261
+ return _ref12.apply(this, arguments);
262
+ };
263
+ }());
264
+ /*Execution Rules */
265
+ _defineProperty(Services, "getExecutionRules", /*#__PURE__*/function () {
266
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(size, page, query, visibility) {
267
+ var response;
268
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
269
+ while (1) switch (_context13.prev = _context13.next) {
270
+ case 0:
271
+ _context13.next = 2;
272
+ return api.get("/executionrules/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
273
+ case 2:
274
+ response = _context13.sent;
275
+ return _context13.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
276
+ case 4:
277
+ case "end":
278
+ return _context13.stop();
279
+ }
280
+ }, _callee13);
281
+ }));
282
+ return function (_x25, _x26, _x27, _x28) {
283
+ return _ref13.apply(this, arguments);
284
+ };
285
+ }());
286
+ _defineProperty(Services, "getExecutionRulesAll", /*#__PURE__*/function () {
287
+ var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(visibility) {
288
+ var response;
289
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
290
+ while (1) switch (_context14.prev = _context14.next) {
291
+ case 0:
292
+ _context14.next = 2;
293
+ return api.get("/executionrules?visibility=".concat(visibility));
294
+ case 2:
295
+ response = _context14.sent;
296
+ return _context14.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
297
+ case 4:
298
+ case "end":
299
+ return _context14.stop();
300
+ }
301
+ }, _callee14);
302
+ }));
303
+ return function (_x29) {
304
+ return _ref14.apply(this, arguments);
305
+ };
306
+ }());
307
+ _defineProperty(Services, "addExecutionRule", /*#__PURE__*/function () {
308
+ var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(value) {
309
+ var response;
310
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
311
+ while (1) switch (_context15.prev = _context15.next) {
312
+ case 0:
313
+ _context15.next = 2;
314
+ return api.post("/executionrules", value);
315
+ case 2:
316
+ response = _context15.sent;
317
+ return _context15.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
318
+ case 4:
319
+ case "end":
320
+ return _context15.stop();
321
+ }
322
+ }, _callee15);
323
+ }));
324
+ return function (_x30) {
325
+ return _ref15.apply(this, arguments);
326
+ };
327
+ }());
328
+ _defineProperty(Services, "editExecutionRule", /*#__PURE__*/function () {
329
+ var _ref16 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(value) {
330
+ var response;
331
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
332
+ while (1) switch (_context16.prev = _context16.next) {
333
+ case 0:
334
+ _context16.next = 2;
335
+ return api.put("/executionrules/".concat(value === null || value === void 0 ? void 0 : value.id), value);
336
+ case 2:
337
+ response = _context16.sent;
338
+ return _context16.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
339
+ case 4:
340
+ case "end":
341
+ return _context16.stop();
342
+ }
343
+ }, _callee16);
344
+ }));
345
+ return function (_x31) {
346
+ return _ref16.apply(this, arguments);
347
+ };
348
+ }());
349
+ _defineProperty(Services, "deleteExecutionRule", /*#__PURE__*/function () {
350
+ var _ref17 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(id) {
351
+ var response;
352
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
353
+ while (1) switch (_context17.prev = _context17.next) {
354
+ case 0:
355
+ _context17.next = 2;
356
+ return api["delete"]("/executionrules/".concat(id));
357
+ case 2:
358
+ response = _context17.sent;
359
+ return _context17.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
360
+ case 4:
361
+ case "end":
362
+ return _context17.stop();
363
+ }
364
+ }, _callee17);
365
+ }));
366
+ return function (_x32) {
367
+ return _ref17.apply(this, arguments);
368
+ };
369
+ }());
370
+ _defineProperty(Services, "executionRuleVisibility", /*#__PURE__*/function () {
371
+ var _ref18 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee18(data) {
372
+ var response;
373
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
374
+ while (1) switch (_context18.prev = _context18.next) {
375
+ case 0:
376
+ _context18.next = 2;
377
+ return api.patch("/executionrules/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
378
+ case 2:
379
+ response = _context18.sent;
380
+ return _context18.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
381
+ case 4:
382
+ case "end":
383
+ return _context18.stop();
384
+ }
385
+ }, _callee18);
386
+ }));
387
+ return function (_x33) {
388
+ return _ref18.apply(this, arguments);
389
+ };
390
+ }());
391
+ /*Document Recieve Methods */
392
+ _defineProperty(Services, "getDocumentRecieveMethods", /*#__PURE__*/function () {
393
+ var _ref19 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee19(size, page, query, visibility) {
394
+ var response;
395
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
396
+ while (1) switch (_context19.prev = _context19.next) {
397
+ case 0:
398
+ _context19.next = 2;
399
+ return api.get("/documentreceivemethods/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
400
+ case 2:
401
+ response = _context19.sent;
402
+ return _context19.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
403
+ case 4:
404
+ case "end":
405
+ return _context19.stop();
406
+ }
407
+ }, _callee19);
408
+ }));
409
+ return function (_x34, _x35, _x36, _x37) {
410
+ return _ref19.apply(this, arguments);
411
+ };
412
+ }());
413
+ _defineProperty(Services, "getDocumentRecieveMethodsAll", /*#__PURE__*/function () {
414
+ var _ref20 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee20(visibility) {
415
+ var response;
416
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
417
+ while (1) switch (_context20.prev = _context20.next) {
418
+ case 0:
419
+ _context20.next = 2;
420
+ return api.get("/documentreceivemethods?visibility=".concat(visibility));
421
+ case 2:
422
+ response = _context20.sent;
423
+ return _context20.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
424
+ case 4:
425
+ case "end":
426
+ return _context20.stop();
427
+ }
428
+ }, _callee20);
429
+ }));
430
+ return function (_x38) {
431
+ return _ref20.apply(this, arguments);
432
+ };
433
+ }());
434
+ _defineProperty(Services, "addDocumentRecieveMethod", /*#__PURE__*/function () {
435
+ var _ref21 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(value) {
436
+ var response;
437
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
438
+ while (1) switch (_context21.prev = _context21.next) {
439
+ case 0:
440
+ _context21.next = 2;
441
+ return api.post("/documentreceivemethods", value);
442
+ case 2:
443
+ response = _context21.sent;
444
+ return _context21.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
445
+ case 4:
446
+ case "end":
447
+ return _context21.stop();
448
+ }
449
+ }, _callee21);
450
+ }));
451
+ return function (_x39) {
452
+ return _ref21.apply(this, arguments);
453
+ };
454
+ }());
455
+ _defineProperty(Services, "editDocumentRecieveMethod", /*#__PURE__*/function () {
456
+ var _ref22 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee22(value) {
457
+ var response;
458
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
459
+ while (1) switch (_context22.prev = _context22.next) {
460
+ case 0:
461
+ _context22.next = 2;
462
+ return api.put("/documentreceivemethods/".concat(value === null || value === void 0 ? void 0 : value.id), value);
463
+ case 2:
464
+ response = _context22.sent;
465
+ return _context22.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
466
+ case 4:
467
+ case "end":
468
+ return _context22.stop();
469
+ }
470
+ }, _callee22);
471
+ }));
472
+ return function (_x40) {
473
+ return _ref22.apply(this, arguments);
474
+ };
475
+ }());
476
+ _defineProperty(Services, "deleteDocumentRecieveMethod", /*#__PURE__*/function () {
477
+ var _ref23 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee23(id) {
478
+ var response;
479
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
480
+ while (1) switch (_context23.prev = _context23.next) {
481
+ case 0:
482
+ _context23.next = 2;
483
+ return api["delete"]("/documentreceivemethods/".concat(id));
484
+ case 2:
485
+ response = _context23.sent;
486
+ return _context23.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
487
+ case 4:
488
+ case "end":
489
+ return _context23.stop();
490
+ }
491
+ }, _callee23);
492
+ }));
493
+ return function (_x41) {
494
+ return _ref23.apply(this, arguments);
495
+ };
496
+ }());
497
+ _defineProperty(Services, "documentRecieveMethodVisibility", /*#__PURE__*/function () {
498
+ var _ref24 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee24(data) {
499
+ var response;
500
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
501
+ while (1) switch (_context24.prev = _context24.next) {
502
+ case 0:
503
+ _context24.next = 2;
504
+ return api.patch("/documentreceivemethods/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
505
+ case 2:
506
+ response = _context24.sent;
507
+ return _context24.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
508
+ case 4:
509
+ case "end":
510
+ return _context24.stop();
511
+ }
512
+ }, _callee24);
513
+ }));
514
+ return function (_x42) {
515
+ return _ref24.apply(this, arguments);
516
+ };
517
+ }());
518
+ /* Document Types */
519
+ _defineProperty(Services, "getDocumentTypes", /*#__PURE__*/function () {
520
+ var _ref25 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee25(size, page, query, visibility, category) {
521
+ var response;
522
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
523
+ while (1) switch (_context25.prev = _context25.next) {
524
+ case 0:
525
+ _context25.next = 2;
526
+ return api.get("/documenttypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&category=").concat(category, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
527
+ case 2:
528
+ response = _context25.sent;
529
+ return _context25.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
530
+ case 4:
531
+ case "end":
532
+ return _context25.stop();
533
+ }
534
+ }, _callee25);
535
+ }));
536
+ return function (_x43, _x44, _x45, _x46, _x47) {
537
+ return _ref25.apply(this, arguments);
538
+ };
539
+ }());
540
+ _defineProperty(Services, "getDocumentTypesAllOne", /*#__PURE__*/function () {
541
+ var _ref26 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee26(visibility, category) {
542
+ var response;
543
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
544
+ while (1) switch (_context26.prev = _context26.next) {
545
+ case 0:
546
+ _context26.next = 2;
547
+ return api.get("/documenttypes?visibility=".concat(visibility, "&category=1"));
548
+ case 2:
549
+ response = _context26.sent;
550
+ return _context26.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
551
+ case 4:
552
+ case "end":
553
+ return _context26.stop();
554
+ }
555
+ }, _callee26);
556
+ }));
557
+ return function (_x48, _x49) {
558
+ return _ref26.apply(this, arguments);
559
+ };
560
+ }());
561
+ _defineProperty(Services, "getDocumentTypesAllTwo", /*#__PURE__*/function () {
562
+ var _ref27 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(visibility, category) {
563
+ var response;
564
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
565
+ while (1) switch (_context27.prev = _context27.next) {
566
+ case 0:
567
+ _context27.next = 2;
568
+ return api.get("/documenttypes?visibility=".concat(visibility, "&category=2"));
569
+ case 2:
570
+ response = _context27.sent;
571
+ return _context27.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
572
+ case 4:
573
+ case "end":
574
+ return _context27.stop();
575
+ }
576
+ }, _callee27);
577
+ }));
578
+ return function (_x50, _x51) {
579
+ return _ref27.apply(this, arguments);
580
+ };
581
+ }());
582
+ _defineProperty(Services, "addDocumentTypes", /*#__PURE__*/function () {
583
+ var _ref28 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(value) {
584
+ var response;
585
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
586
+ while (1) switch (_context28.prev = _context28.next) {
587
+ case 0:
588
+ _context28.next = 2;
589
+ return api.post("/documenttypes", value);
590
+ case 2:
591
+ response = _context28.sent;
592
+ return _context28.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
593
+ case 4:
594
+ case "end":
595
+ return _context28.stop();
596
+ }
597
+ }, _callee28);
598
+ }));
599
+ return function (_x52) {
600
+ return _ref28.apply(this, arguments);
601
+ };
602
+ }());
603
+ _defineProperty(Services, "editDocumentTypes", /*#__PURE__*/function () {
604
+ var _ref29 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(value) {
605
+ var response;
606
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
607
+ while (1) switch (_context29.prev = _context29.next) {
608
+ case 0:
609
+ _context29.next = 2;
610
+ return api.put("/documenttypes/".concat(value === null || value === void 0 ? void 0 : value.id), value);
611
+ case 2:
612
+ response = _context29.sent;
613
+ return _context29.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
614
+ case 4:
615
+ case "end":
616
+ return _context29.stop();
617
+ }
618
+ }, _callee29);
619
+ }));
620
+ return function (_x53) {
621
+ return _ref29.apply(this, arguments);
622
+ };
623
+ }());
624
+ _defineProperty(Services, "deleteDocumentTypes", /*#__PURE__*/function () {
625
+ var _ref30 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee30(id) {
626
+ var response;
627
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
628
+ while (1) switch (_context30.prev = _context30.next) {
629
+ case 0:
630
+ _context30.next = 2;
631
+ return api["delete"]("/documenttypes/".concat(id));
632
+ case 2:
633
+ response = _context30.sent;
634
+ return _context30.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
635
+ case 4:
636
+ case "end":
637
+ return _context30.stop();
638
+ }
639
+ }, _callee30);
640
+ }));
641
+ return function (_x54) {
642
+ return _ref30.apply(this, arguments);
643
+ };
644
+ }());
645
+ _defineProperty(Services, "documentTypesVisibility", /*#__PURE__*/function () {
646
+ var _ref31 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee31(data) {
647
+ var response;
648
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
649
+ while (1) switch (_context31.prev = _context31.next) {
650
+ case 0:
651
+ _context31.next = 2;
652
+ return api.patch("/documenttypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
653
+ case 2:
654
+ response = _context31.sent;
655
+ return _context31.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
656
+ case 4:
657
+ case "end":
658
+ return _context31.stop();
659
+ }
660
+ }, _callee31);
661
+ }));
662
+ return function (_x55) {
663
+ return _ref31.apply(this, arguments);
664
+ };
665
+ }());
666
+ /*Countries */
667
+ _defineProperty(Services, "getCountries", /*#__PURE__*/function () {
668
+ var _ref32 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee32(size, page, query, visibility) {
669
+ var response;
670
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
671
+ while (1) switch (_context32.prev = _context32.next) {
672
+ case 0:
673
+ _context32.next = 2;
674
+ return api.get("/countries/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
675
+ case 2:
676
+ response = _context32.sent;
677
+ return _context32.abrupt("return", response);
678
+ case 4:
679
+ case "end":
680
+ return _context32.stop();
681
+ }
682
+ }, _callee32);
683
+ }));
684
+ return function (_x56, _x57, _x58, _x59) {
685
+ return _ref32.apply(this, arguments);
686
+ };
687
+ }());
688
+ _defineProperty(Services, "getCountriesAll", /*#__PURE__*/function () {
689
+ var _ref33 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee33(data) {
690
+ var response;
691
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
692
+ while (1) switch (_context33.prev = _context33.next) {
693
+ case 0:
694
+ _context33.next = 2;
695
+ return api.get("/countries?visibility=".concat(data === null || data === void 0 ? void 0 : data.visibility));
696
+ case 2:
697
+ response = _context33.sent;
698
+ return _context33.abrupt("return", response);
699
+ case 4:
700
+ case "end":
701
+ return _context33.stop();
702
+ }
703
+ }, _callee33);
704
+ }));
705
+ return function (_x60) {
706
+ return _ref33.apply(this, arguments);
707
+ };
708
+ }());
709
+ _defineProperty(Services, "addCountry", /*#__PURE__*/function () {
710
+ var _ref34 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee34(value) {
711
+ var response;
712
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
713
+ while (1) switch (_context34.prev = _context34.next) {
714
+ case 0:
715
+ _context34.next = 2;
716
+ return api.post("/countries", value);
717
+ case 2:
718
+ response = _context34.sent;
719
+ return _context34.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
720
+ case 4:
721
+ case "end":
722
+ return _context34.stop();
723
+ }
724
+ }, _callee34);
725
+ }));
726
+ return function (_x61) {
727
+ return _ref34.apply(this, arguments);
728
+ };
729
+ }());
730
+ _defineProperty(Services, "editCountry", /*#__PURE__*/function () {
731
+ var _ref35 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(value) {
732
+ var response;
733
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
734
+ while (1) switch (_context35.prev = _context35.next) {
735
+ case 0:
736
+ _context35.next = 2;
737
+ return api.put("/countries/".concat(value === null || value === void 0 ? void 0 : value.id), value);
738
+ case 2:
739
+ response = _context35.sent;
740
+ return _context35.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
741
+ case 4:
742
+ case "end":
743
+ return _context35.stop();
744
+ }
745
+ }, _callee35);
746
+ }));
747
+ return function (_x62) {
748
+ return _ref35.apply(this, arguments);
749
+ };
750
+ }());
751
+ _defineProperty(Services, "countryVisibility", /*#__PURE__*/function () {
752
+ var _ref36 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee36(data) {
753
+ var response;
754
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
755
+ while (1) switch (_context36.prev = _context36.next) {
756
+ case 0:
757
+ _context36.next = 2;
758
+ return api.patch("/countries/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
759
+ case 2:
760
+ response = _context36.sent;
761
+ return _context36.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
762
+ case 4:
763
+ case "end":
764
+ return _context36.stop();
765
+ }
766
+ }, _callee36);
767
+ }));
768
+ return function (_x63) {
769
+ return _ref36.apply(this, arguments);
770
+ };
771
+ }());
772
+ _defineProperty(Services, "deleteCountry", /*#__PURE__*/function () {
773
+ var _ref37 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee37(id) {
774
+ var response;
775
+ return _regeneratorRuntime.wrap(function _callee37$(_context37) {
776
+ while (1) switch (_context37.prev = _context37.next) {
777
+ case 0:
778
+ _context37.next = 2;
779
+ return api["delete"]("/countries/".concat(id));
780
+ case 2:
781
+ response = _context37.sent;
782
+ return _context37.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
783
+ case 4:
784
+ case "end":
785
+ return _context37.stop();
786
+ }
787
+ }, _callee37);
788
+ }));
789
+ return function (_x64) {
790
+ return _ref37.apply(this, arguments);
791
+ };
792
+ }());
793
+ /*Streets */
794
+ // static getStreets = async (size, page, query, visibility) => {
795
+ // const response = await api.get(
796
+ // `/regions/${size}/page/${page}?types=6&visibility=${visibility}&name=${query.name}`
797
+ // );
798
+ // return response?.data;
799
+ // };
800
+ // static streetVisibility = async (data) => {
801
+ // const response = await api.patch(
802
+ // `/regions/${data?.id}/visibility/${data?.checked}?type=6`
803
+ // );
804
+ // return response?.data;
805
+ // };
806
+ // static addStreet = async (value) => {
807
+ // const response = await api.post(`/regions`, value);
808
+ // return response?.data;
809
+ // };
810
+ // static edit = async (data) => {
811
+ // const response = await api.put(`/regions/${data?.id}`, data);
812
+ // return response?.data;
813
+ // };
814
+ // static delete = async (id) => {
815
+ // const response = await api.delete(`/regions/${id}`);
816
+ // return response?.data;
817
+ // };
818
+ /* Organizations */
819
+ _defineProperty(Services, "getOrganizations", /*#__PURE__*/function () {
820
+ var _ref38 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee38(size, page, query, visibility) {
821
+ var queryStr, response;
822
+ return _regeneratorRuntime.wrap(function _callee38$(_context38) {
823
+ while (1) switch (_context38.prev = _context38.next) {
824
+ case 0:
825
+ queryStr = queryString(query);
826
+ _context38.next = 3;
827
+ return api.get("/organisations/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&").concat(queryStr, " "));
828
+ case 3:
829
+ response = _context38.sent;
830
+ return _context38.abrupt("return", response);
831
+ case 5:
832
+ case "end":
833
+ return _context38.stop();
834
+ }
835
+ }, _callee38);
836
+ }));
837
+ return function (_x65, _x66, _x67, _x68) {
838
+ return _ref38.apply(this, arguments);
839
+ };
840
+ }());
841
+ _defineProperty(Services, "addOrganization", /*#__PURE__*/function () {
842
+ var _ref39 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee39(value) {
843
+ var response;
844
+ return _regeneratorRuntime.wrap(function _callee39$(_context39) {
845
+ while (1) switch (_context39.prev = _context39.next) {
846
+ case 0:
847
+ _context39.next = 2;
848
+ return api.post("/organisations", value);
849
+ case 2:
850
+ response = _context39.sent;
851
+ return _context39.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
852
+ case 4:
853
+ case "end":
854
+ return _context39.stop();
855
+ }
856
+ }, _callee39);
857
+ }));
858
+ return function (_x69) {
859
+ return _ref39.apply(this, arguments);
860
+ };
861
+ }());
862
+ _defineProperty(Services, "editOrganization", /*#__PURE__*/function () {
863
+ var _ref40 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee40(data) {
864
+ var response;
865
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
866
+ while (1) switch (_context40.prev = _context40.next) {
867
+ case 0:
868
+ _context40.next = 2;
869
+ return api.put("/organisations/".concat(data === null || data === void 0 ? void 0 : data.id), data);
870
+ case 2:
871
+ response = _context40.sent;
872
+ return _context40.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
873
+ case 4:
874
+ case "end":
875
+ return _context40.stop();
876
+ }
877
+ }, _callee40);
878
+ }));
879
+ return function (_x70) {
880
+ return _ref40.apply(this, arguments);
881
+ };
882
+ }());
883
+ _defineProperty(Services, "deleteOrganization", /*#__PURE__*/function () {
884
+ var _ref41 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee41(id) {
885
+ var response;
886
+ return _regeneratorRuntime.wrap(function _callee41$(_context41) {
887
+ while (1) switch (_context41.prev = _context41.next) {
888
+ case 0:
889
+ _context41.next = 2;
890
+ return api["delete"]("/organisations/".concat(id));
891
+ case 2:
892
+ response = _context41.sent;
893
+ return _context41.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
894
+ case 4:
895
+ case "end":
896
+ return _context41.stop();
897
+ }
898
+ }, _callee41);
899
+ }));
900
+ return function (_x71) {
901
+ return _ref41.apply(this, arguments);
902
+ };
903
+ }());
904
+ _defineProperty(Services, "organizationVisibility", /*#__PURE__*/function () {
905
+ var _ref42 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee42(data) {
906
+ var response;
907
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
908
+ while (1) switch (_context42.prev = _context42.next) {
909
+ case 0:
910
+ _context42.next = 2;
911
+ return api.patch("/organisations/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
912
+ case 2:
913
+ response = _context42.sent;
914
+ return _context42.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
915
+ case 4:
916
+ case "end":
917
+ return _context42.stop();
918
+ }
919
+ }, _callee42);
920
+ }));
921
+ return function (_x72) {
922
+ return _ref42.apply(this, arguments);
923
+ };
924
+ }());
925
+ /*Structures*/
926
+ _defineProperty(Services, "getStructures", /*#__PURE__*/function () {
927
+ var _ref43 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee43(size, page, query, visibility) {
928
+ var response;
929
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
930
+ while (1) switch (_context43.prev = _context43.next) {
931
+ case 0:
932
+ _context43.next = 2;
933
+ return api.get("/structures/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
934
+ case 2:
935
+ response = _context43.sent;
936
+ return _context43.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
937
+ case 4:
938
+ case "end":
939
+ return _context43.stop();
940
+ }
941
+ }, _callee43);
942
+ }));
943
+ return function (_x73, _x74, _x75, _x76) {
944
+ return _ref43.apply(this, arguments);
945
+ };
946
+ }());
947
+ _defineProperty(Services, "addStructure", /*#__PURE__*/function () {
948
+ var _ref44 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee44(value) {
949
+ var response;
950
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
951
+ while (1) switch (_context44.prev = _context44.next) {
952
+ case 0:
953
+ _context44.next = 2;
954
+ return api.post("/structures", value);
955
+ case 2:
956
+ response = _context44.sent;
957
+ return _context44.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
958
+ case 4:
959
+ case "end":
960
+ return _context44.stop();
961
+ }
962
+ }, _callee44);
963
+ }));
964
+ return function (_x77) {
965
+ return _ref44.apply(this, arguments);
966
+ };
967
+ }());
968
+ _defineProperty(Services, "editStructure", /*#__PURE__*/function () {
969
+ var _ref45 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee45(data) {
970
+ var response;
971
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
972
+ while (1) switch (_context45.prev = _context45.next) {
973
+ case 0:
974
+ _context45.next = 2;
975
+ return api.put("/structures/".concat(data === null || data === void 0 ? void 0 : data.id), data);
976
+ case 2:
977
+ response = _context45.sent;
978
+ return _context45.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
979
+ case 4:
980
+ case "end":
981
+ return _context45.stop();
982
+ }
983
+ }, _callee45);
984
+ }));
985
+ return function (_x78) {
986
+ return _ref45.apply(this, arguments);
987
+ };
988
+ }());
989
+ _defineProperty(Services, "deleteStructure", /*#__PURE__*/function () {
990
+ var _ref46 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee46(id) {
991
+ var response;
992
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
993
+ while (1) switch (_context46.prev = _context46.next) {
994
+ case 0:
995
+ _context46.next = 2;
996
+ return api["delete"]("/structures/".concat(id));
997
+ case 2:
998
+ response = _context46.sent;
999
+ return _context46.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1000
+ case 4:
1001
+ case "end":
1002
+ return _context46.stop();
1003
+ }
1004
+ }, _callee46);
1005
+ }));
1006
+ return function (_x79) {
1007
+ return _ref46.apply(this, arguments);
1008
+ };
1009
+ }());
1010
+ _defineProperty(Services, "structureVisibility", /*#__PURE__*/function () {
1011
+ var _ref47 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee47(data) {
1012
+ var response;
1013
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
1014
+ while (1) switch (_context47.prev = _context47.next) {
1015
+ case 0:
1016
+ _context47.next = 2;
1017
+ return api.patch("/structures/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
1018
+ case 2:
1019
+ response = _context47.sent;
1020
+ return _context47.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1021
+ case 4:
1022
+ case "end":
1023
+ return _context47.stop();
1024
+ }
1025
+ }, _callee47);
1026
+ }));
1027
+ return function (_x80) {
1028
+ return _ref47.apply(this, arguments);
1029
+ };
1030
+ }());
1031
+ /*Application forms */
1032
+ _defineProperty(Services, "getApplicationForms", /*#__PURE__*/function () {
1033
+ var _ref48 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee48(size, page, query, visibility) {
1034
+ var response;
1035
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
1036
+ while (1) switch (_context48.prev = _context48.next) {
1037
+ case 0:
1038
+ _context48.next = 2;
1039
+ return api.get("/applicationforms/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1040
+ case 2:
1041
+ response = _context48.sent;
1042
+ return _context48.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1043
+ case 4:
1044
+ case "end":
1045
+ return _context48.stop();
1046
+ }
1047
+ }, _callee48);
1048
+ }));
1049
+ return function (_x81, _x82, _x83, _x84) {
1050
+ return _ref48.apply(this, arguments);
1051
+ };
1052
+ }());
1053
+ _defineProperty(Services, "getApplicationFormsAll", /*#__PURE__*/function () {
1054
+ var _ref49 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee49(visibility) {
1055
+ var response;
1056
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
1057
+ while (1) switch (_context49.prev = _context49.next) {
1058
+ case 0:
1059
+ _context49.next = 2;
1060
+ return api.get("/applicationforms?visibility=".concat(visibility));
1061
+ case 2:
1062
+ response = _context49.sent;
1063
+ return _context49.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1064
+ case 4:
1065
+ case "end":
1066
+ return _context49.stop();
1067
+ }
1068
+ }, _callee49);
1069
+ }));
1070
+ return function (_x85) {
1071
+ return _ref49.apply(this, arguments);
1072
+ };
1073
+ }());
1074
+ _defineProperty(Services, "addApplicationForm", /*#__PURE__*/function () {
1075
+ var _ref50 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee50(value) {
1076
+ var response;
1077
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
1078
+ while (1) switch (_context50.prev = _context50.next) {
1079
+ case 0:
1080
+ _context50.next = 2;
1081
+ return api.post("/applicationforms", value);
1082
+ case 2:
1083
+ response = _context50.sent;
1084
+ return _context50.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1085
+ case 4:
1086
+ case "end":
1087
+ return _context50.stop();
1088
+ }
1089
+ }, _callee50);
1090
+ }));
1091
+ return function (_x86) {
1092
+ return _ref50.apply(this, arguments);
1093
+ };
1094
+ }());
1095
+ _defineProperty(Services, "editApplicationForm", /*#__PURE__*/function () {
1096
+ var _ref51 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee51(data) {
1097
+ var response;
1098
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
1099
+ while (1) switch (_context51.prev = _context51.next) {
1100
+ case 0:
1101
+ _context51.next = 2;
1102
+ return api.put("/applicationforms/".concat(data === null || data === void 0 ? void 0 : data.id), data);
1103
+ case 2:
1104
+ response = _context51.sent;
1105
+ return _context51.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1106
+ case 4:
1107
+ case "end":
1108
+ return _context51.stop();
1109
+ }
1110
+ }, _callee51);
1111
+ }));
1112
+ return function (_x87) {
1113
+ return _ref51.apply(this, arguments);
1114
+ };
1115
+ }());
1116
+ _defineProperty(Services, "deleteApplicationForm", /*#__PURE__*/function () {
1117
+ var _ref52 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee52(id) {
1118
+ var response;
1119
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
1120
+ while (1) switch (_context52.prev = _context52.next) {
1121
+ case 0:
1122
+ _context52.next = 2;
1123
+ return api["delete"]("/applicationforms/".concat(id));
1124
+ case 2:
1125
+ response = _context52.sent;
1126
+ return _context52.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1127
+ case 4:
1128
+ case "end":
1129
+ return _context52.stop();
1130
+ }
1131
+ }, _callee52);
1132
+ }));
1133
+ return function (_x88) {
1134
+ return _ref52.apply(this, arguments);
1135
+ };
1136
+ }());
1137
+ _defineProperty(Services, "applicationFormVisibility", /*#__PURE__*/function () {
1138
+ var _ref53 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee53(data) {
1139
+ var response;
1140
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
1141
+ while (1) switch (_context53.prev = _context53.next) {
1142
+ case 0:
1143
+ _context53.next = 2;
1144
+ return api.patch("/applicationforms/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
1145
+ case 2:
1146
+ response = _context53.sent;
1147
+ return _context53.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1148
+ case 4:
1149
+ case "end":
1150
+ return _context53.stop();
1151
+ }
1152
+ }, _callee53);
1153
+ }));
1154
+ return function (_x89) {
1155
+ return _ref53.apply(this, arguments);
1156
+ };
1157
+ }());
1158
+ /*Document Whom */
1159
+ _defineProperty(Services, "getDocumentWhom", /*#__PURE__*/function () {
1160
+ var _ref54 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee54(size, page, query, visibility, types) {
1161
+ var queryStr, response;
1162
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
1163
+ while (1) switch (_context54.prev = _context54.next) {
1164
+ case 0:
1165
+ queryStr = queryString(query);
1166
+ _context54.next = 3;
1167
+ return api.get("/documentwhomaddresses/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&types=").concat(types, "&").concat(queryStr));
1168
+ case 3:
1169
+ response = _context54.sent;
1170
+ return _context54.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1171
+ case 5:
1172
+ case "end":
1173
+ return _context54.stop();
1174
+ }
1175
+ }, _callee54);
1176
+ }));
1177
+ return function (_x90, _x91, _x92, _x93, _x94) {
1178
+ return _ref54.apply(this, arguments);
1179
+ };
1180
+ }());
1181
+ _defineProperty(Services, "getDocumentWhomAll", /*#__PURE__*/function () {
1182
+ var _ref55 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee55(visibility, type) {
1183
+ var response;
1184
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
1185
+ while (1) switch (_context55.prev = _context55.next) {
1186
+ case 0:
1187
+ _context55.next = 2;
1188
+ return api.get("/documentwhomaddresses?visibility=".concat(visibility, "&type=").concat(type));
1189
+ case 2:
1190
+ response = _context55.sent;
1191
+ return _context55.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1192
+ case 4:
1193
+ case "end":
1194
+ return _context55.stop();
1195
+ }
1196
+ }, _callee55);
1197
+ }));
1198
+ return function (_x95, _x96) {
1199
+ return _ref55.apply(this, arguments);
1200
+ };
1201
+ }());
1202
+ _defineProperty(Services, "getDocumentWhomAll1", /*#__PURE__*/function () {
1203
+ var _ref56 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee56(visibility) {
1204
+ var response;
1205
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
1206
+ while (1) switch (_context56.prev = _context56.next) {
1207
+ case 0:
1208
+ _context56.next = 2;
1209
+ return api.get("/documentwhomaddresses?visibility=".concat(visibility, "&types=1"));
1210
+ case 2:
1211
+ response = _context56.sent;
1212
+ return _context56.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1213
+ case 4:
1214
+ case "end":
1215
+ return _context56.stop();
1216
+ }
1217
+ }, _callee56);
1218
+ }));
1219
+ return function (_x97) {
1220
+ return _ref56.apply(this, arguments);
1221
+ };
1222
+ }());
1223
+ _defineProperty(Services, "addDocumentWhom", /*#__PURE__*/function () {
1224
+ var _ref57 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee57(value) {
1225
+ var response;
1226
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
1227
+ while (1) switch (_context57.prev = _context57.next) {
1228
+ case 0:
1229
+ _context57.next = 2;
1230
+ return api.post("/documentwhomaddresses", value);
1231
+ case 2:
1232
+ response = _context57.sent;
1233
+ return _context57.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1234
+ case 4:
1235
+ case "end":
1236
+ return _context57.stop();
1237
+ }
1238
+ }, _callee57);
1239
+ }));
1240
+ return function (_x98) {
1241
+ return _ref57.apply(this, arguments);
1242
+ };
1243
+ }());
1244
+ _defineProperty(Services, "editDocumentWhom", /*#__PURE__*/function () {
1245
+ var _ref58 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee58(data) {
1246
+ var response;
1247
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
1248
+ while (1) switch (_context58.prev = _context58.next) {
1249
+ case 0:
1250
+ _context58.next = 2;
1251
+ return api.put("/documentwhomaddresses/".concat(data === null || data === void 0 ? void 0 : data.id), data);
1252
+ case 2:
1253
+ response = _context58.sent;
1254
+ return _context58.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1255
+ case 4:
1256
+ case "end":
1257
+ return _context58.stop();
1258
+ }
1259
+ }, _callee58);
1260
+ }));
1261
+ return function (_x99) {
1262
+ return _ref58.apply(this, arguments);
1263
+ };
1264
+ }());
1265
+ _defineProperty(Services, "deleteDocumentWhom", /*#__PURE__*/function () {
1266
+ var _ref59 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee59(id) {
1267
+ var response;
1268
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
1269
+ while (1) switch (_context59.prev = _context59.next) {
1270
+ case 0:
1271
+ _context59.next = 2;
1272
+ return api["delete"]("/documentwhomaddresses/".concat(id));
1273
+ case 2:
1274
+ response = _context59.sent;
1275
+ return _context59.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1276
+ case 4:
1277
+ case "end":
1278
+ return _context59.stop();
1279
+ }
1280
+ }, _callee59);
1281
+ }));
1282
+ return function (_x100) {
1283
+ return _ref59.apply(this, arguments);
1284
+ };
1285
+ }());
1286
+ _defineProperty(Services, "documentWhomVisibility", /*#__PURE__*/function () {
1287
+ var _ref60 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee60(data) {
1288
+ var response;
1289
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
1290
+ while (1) switch (_context60.prev = _context60.next) {
1291
+ case 0:
1292
+ _context60.next = 2;
1293
+ return api.patch("/documentwhomaddresses/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
1294
+ case 2:
1295
+ response = _context60.sent;
1296
+ return _context60.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1297
+ case 4:
1298
+ case "end":
1299
+ return _context60.stop();
1300
+ }
1301
+ }, _callee60);
1302
+ }));
1303
+ return function (_x101) {
1304
+ return _ref60.apply(this, arguments);
1305
+ };
1306
+ }());
1307
+ /*marginNoteTexts */
1308
+ _defineProperty(Services, "getMarginNoteText", /*#__PURE__*/function () {
1309
+ var _ref61 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee61(size, page, query, visibility) {
1310
+ var queryStr, response;
1311
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
1312
+ while (1) switch (_context61.prev = _context61.next) {
1313
+ case 0:
1314
+ queryStr = queryString(query);
1315
+ _context61.next = 3;
1316
+ return api.get("/documentdirectiontexts/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&").concat(queryStr));
1317
+ case 3:
1318
+ response = _context61.sent;
1319
+ return _context61.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1320
+ case 5:
1321
+ case "end":
1322
+ return _context61.stop();
1323
+ }
1324
+ }, _callee61);
1325
+ }));
1326
+ return function (_x102, _x103, _x104, _x105) {
1327
+ return _ref61.apply(this, arguments);
1328
+ };
1329
+ }());
1330
+ _defineProperty(Services, "addMarginNoteText", /*#__PURE__*/function () {
1331
+ var _ref62 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee62(value) {
1332
+ var response;
1333
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
1334
+ while (1) switch (_context62.prev = _context62.next) {
1335
+ case 0:
1336
+ _context62.next = 2;
1337
+ return api.post("/documentdirectiontexts", value);
1338
+ case 2:
1339
+ response = _context62.sent;
1340
+ return _context62.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1341
+ case 4:
1342
+ case "end":
1343
+ return _context62.stop();
1344
+ }
1345
+ }, _callee62);
1346
+ }));
1347
+ return function (_x106) {
1348
+ return _ref62.apply(this, arguments);
1349
+ };
1350
+ }());
1351
+ _defineProperty(Services, "editMarginNoteText", /*#__PURE__*/function () {
1352
+ var _ref63 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee63(data) {
1353
+ var response;
1354
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
1355
+ while (1) switch (_context63.prev = _context63.next) {
1356
+ case 0:
1357
+ _context63.next = 2;
1358
+ return api.put("/documentdirectiontexts/".concat(data === null || data === void 0 ? void 0 : data.id), data);
1359
+ case 2:
1360
+ response = _context63.sent;
1361
+ return _context63.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1362
+ case 4:
1363
+ case "end":
1364
+ return _context63.stop();
1365
+ }
1366
+ }, _callee63);
1367
+ }));
1368
+ return function (_x107) {
1369
+ return _ref63.apply(this, arguments);
1370
+ };
1371
+ }());
1372
+ _defineProperty(Services, "deleteMarginNoteText", /*#__PURE__*/function () {
1373
+ var _ref64 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
1374
+ var response;
1375
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
1376
+ while (1) switch (_context64.prev = _context64.next) {
1377
+ case 0:
1378
+ _context64.next = 2;
1379
+ return api["delete"]("/documentdirectiontexts/".concat(id));
1380
+ case 2:
1381
+ response = _context64.sent;
1382
+ return _context64.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1383
+ case 4:
1384
+ case "end":
1385
+ return _context64.stop();
1386
+ }
1387
+ }, _callee64);
1388
+ }));
1389
+ return function (_x108) {
1390
+ return _ref64.apply(this, arguments);
1391
+ };
1392
+ }());
1393
+ _defineProperty(Services, "marginNoteTextVisibility", /*#__PURE__*/function () {
1394
+ var _ref65 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee65(data) {
1395
+ var response;
1396
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
1397
+ while (1) switch (_context65.prev = _context65.next) {
1398
+ case 0:
1399
+ _context65.next = 2;
1400
+ return api.patch("/documentdirectiontexts/".concat(data === null || data === void 0 ? void 0 : data.id), data);
1401
+ case 2:
1402
+ response = _context65.sent;
1403
+ return _context65.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1404
+ case 4:
1405
+ case "end":
1406
+ return _context65.stop();
1407
+ }
1408
+ }, _callee65);
1409
+ }));
1410
+ return function (_x109) {
1411
+ return _ref65.apply(this, arguments);
1412
+ };
1413
+ }());
1414
+ /* // */
1415
+ _defineProperty(Services, "getDeliveryMethod", /*#__PURE__*/function () {
1416
+ var _ref66 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee66(size, page, query, visibility) {
1417
+ var response;
1418
+ return _regeneratorRuntime.wrap(function _callee66$(_context66) {
1419
+ while (1) switch (_context66.prev = _context66.next) {
1420
+ case 0:
1421
+ _context66.next = 2;
1422
+ return api.get("/shipmentforms/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1423
+ case 2:
1424
+ response = _context66.sent;
1425
+ return _context66.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1426
+ case 4:
1427
+ case "end":
1428
+ return _context66.stop();
1429
+ }
1430
+ }, _callee66);
1431
+ }));
1432
+ return function (_x110, _x111, _x112, _x113) {
1433
+ return _ref66.apply(this, arguments);
1434
+ };
1435
+ }());
1436
+ _defineProperty(Services, "getDeliveryMethodAll", /*#__PURE__*/function () {
1437
+ var _ref67 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee67(visibility) {
1438
+ var response;
1439
+ return _regeneratorRuntime.wrap(function _callee67$(_context67) {
1440
+ while (1) switch (_context67.prev = _context67.next) {
1441
+ case 0:
1442
+ _context67.next = 2;
1443
+ return api.get("/shipmentforms?visibility=".concat(visibility));
1444
+ case 2:
1445
+ response = _context67.sent;
1446
+ return _context67.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1447
+ case 4:
1448
+ case "end":
1449
+ return _context67.stop();
1450
+ }
1451
+ }, _callee67);
1452
+ }));
1453
+ return function (_x114) {
1454
+ return _ref67.apply(this, arguments);
1455
+ };
1456
+ }());
1457
+ _defineProperty(Services, "addDeliveryMethod", /*#__PURE__*/function () {
1458
+ var _ref68 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee68(value) {
1459
+ var response;
1460
+ return _regeneratorRuntime.wrap(function _callee68$(_context68) {
1461
+ while (1) switch (_context68.prev = _context68.next) {
1462
+ case 0:
1463
+ _context68.next = 2;
1464
+ return api.post("/shipmentforms", value);
1465
+ case 2:
1466
+ response = _context68.sent;
1467
+ return _context68.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1468
+ case 4:
1469
+ case "end":
1470
+ return _context68.stop();
1471
+ }
1472
+ }, _callee68);
1473
+ }));
1474
+ return function (_x115) {
1475
+ return _ref68.apply(this, arguments);
1476
+ };
1477
+ }());
1478
+ _defineProperty(Services, "editDeliveryMethod", /*#__PURE__*/function () {
1479
+ var _ref69 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee69(data) {
1480
+ var response;
1481
+ return _regeneratorRuntime.wrap(function _callee69$(_context69) {
1482
+ while (1) switch (_context69.prev = _context69.next) {
1483
+ case 0:
1484
+ _context69.next = 2;
1485
+ return api.put("/shipmentforms/".concat(data === null || data === void 0 ? void 0 : data.id), data);
1486
+ case 2:
1487
+ response = _context69.sent;
1488
+ return _context69.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1489
+ case 4:
1490
+ case "end":
1491
+ return _context69.stop();
1492
+ }
1493
+ }, _callee69);
1494
+ }));
1495
+ return function (_x116) {
1496
+ return _ref69.apply(this, arguments);
1497
+ };
1498
+ }());
1499
+ _defineProperty(Services, "deleteDeliveryMethod", /*#__PURE__*/function () {
1500
+ var _ref70 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee70(id) {
1501
+ var response;
1502
+ return _regeneratorRuntime.wrap(function _callee70$(_context70) {
1503
+ while (1) switch (_context70.prev = _context70.next) {
1504
+ case 0:
1505
+ _context70.next = 2;
1506
+ return api["delete"]("/shipmentforms/".concat(id));
1507
+ case 2:
1508
+ response = _context70.sent;
1509
+ return _context70.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1510
+ case 4:
1511
+ case "end":
1512
+ return _context70.stop();
1513
+ }
1514
+ }, _callee70);
1515
+ }));
1516
+ return function (_x117) {
1517
+ return _ref70.apply(this, arguments);
1518
+ };
1519
+ }());
1520
+ _defineProperty(Services, "deliveryMethodVisibility", /*#__PURE__*/function () {
1521
+ var _ref71 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee71(data) {
1522
+ var response;
1523
+ return _regeneratorRuntime.wrap(function _callee71$(_context71) {
1524
+ while (1) switch (_context71.prev = _context71.next) {
1525
+ case 0:
1526
+ _context71.next = 2;
1527
+ return api.patch("/shipmentforms/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
1528
+ case 2:
1529
+ response = _context71.sent;
1530
+ return _context71.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1531
+ case 4:
1532
+ case "end":
1533
+ return _context71.stop();
1534
+ }
1535
+ }, _callee71);
1536
+ }));
1537
+ return function (_x118) {
1538
+ return _ref71.apply(this, arguments);
1539
+ };
1540
+ }());
1541
+ _defineProperty(Services, "getGeneralStructuresAll", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee72() {
1542
+ var response;
1543
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
1544
+ while (1) switch (_context72.prev = _context72.next) {
1545
+ case 0:
1546
+ _context72.next = 2;
1547
+ return api.get("/generalstructures?iswithoutpeople=true&visibility=nondeleted");
1548
+ case 2:
1549
+ response = _context72.sent;
1550
+ return _context72.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1551
+ case 4:
1552
+ case "end":
1553
+ return _context72.stop();
1554
+ }
1555
+ }, _callee72);
1556
+ })));
1557
+ _defineProperty(Services, "getBrands", /*#__PURE__*/function () {
1558
+ var _ref73 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee73(size, page, query, visibility) {
1559
+ var response;
1560
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
1561
+ while (1) switch (_context73.prev = _context73.next) {
1562
+ case 0:
1563
+ _context73.next = 2;
1564
+ return api.get("/brands/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1565
+ case 2:
1566
+ response = _context73.sent;
1567
+ return _context73.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1568
+ case 4:
1569
+ case "end":
1570
+ return _context73.stop();
1571
+ }
1572
+ }, _callee73);
1573
+ }));
1574
+ return function (_x119, _x120, _x121, _x122) {
1575
+ return _ref73.apply(this, arguments);
1576
+ };
1577
+ }());
1578
+ _defineProperty(Services, "getBrandsAll", /*#__PURE__*/function () {
1579
+ var _ref74 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee74(visibility) {
1580
+ var response;
1581
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
1582
+ while (1) switch (_context74.prev = _context74.next) {
1583
+ case 0:
1584
+ _context74.next = 2;
1585
+ return api.get("/brands?visibility=".concat(visibility));
1586
+ case 2:
1587
+ response = _context74.sent;
1588
+ return _context74.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1589
+ case 4:
1590
+ case "end":
1591
+ return _context74.stop();
1592
+ }
1593
+ }, _callee74);
1594
+ }));
1595
+ return function (_x123) {
1596
+ return _ref74.apply(this, arguments);
1597
+ };
1598
+ }());
1599
+ _defineProperty(Services, "addBrand", /*#__PURE__*/function () {
1600
+ var _ref75 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee75(value) {
1601
+ var response;
1602
+ return _regeneratorRuntime.wrap(function _callee75$(_context75) {
1603
+ while (1) switch (_context75.prev = _context75.next) {
1604
+ case 0:
1605
+ _context75.next = 2;
1606
+ return api.post("/brands", value);
1607
+ case 2:
1608
+ response = _context75.sent;
1609
+ return _context75.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1610
+ case 4:
1611
+ case "end":
1612
+ return _context75.stop();
1613
+ }
1614
+ }, _callee75);
1615
+ }));
1616
+ return function (_x124) {
1617
+ return _ref75.apply(this, arguments);
1618
+ };
1619
+ }());
1620
+ _defineProperty(Services, "editBrand", /*#__PURE__*/function () {
1621
+ var _ref76 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee76(value) {
1622
+ var response;
1623
+ return _regeneratorRuntime.wrap(function _callee76$(_context76) {
1624
+ while (1) switch (_context76.prev = _context76.next) {
1625
+ case 0:
1626
+ _context76.next = 2;
1627
+ return api.put("/brands/".concat(value === null || value === void 0 ? void 0 : value.id), value);
1628
+ case 2:
1629
+ response = _context76.sent;
1630
+ return _context76.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1631
+ case 4:
1632
+ case "end":
1633
+ return _context76.stop();
1634
+ }
1635
+ }, _callee76);
1636
+ }));
1637
+ return function (_x125) {
1638
+ return _ref76.apply(this, arguments);
1639
+ };
1640
+ }());
1641
+ _defineProperty(Services, "deleteBrand", /*#__PURE__*/function () {
1642
+ var _ref77 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee77(id) {
1643
+ var response;
1644
+ return _regeneratorRuntime.wrap(function _callee77$(_context77) {
1645
+ while (1) switch (_context77.prev = _context77.next) {
1646
+ case 0:
1647
+ _context77.next = 2;
1648
+ return api["delete"]("/brands/".concat(id));
1649
+ case 2:
1650
+ response = _context77.sent;
1651
+ return _context77.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1652
+ case 4:
1653
+ case "end":
1654
+ return _context77.stop();
1655
+ }
1656
+ }, _callee77);
1657
+ }));
1658
+ return function (_x126) {
1659
+ return _ref77.apply(this, arguments);
1660
+ };
1661
+ }());
1662
+ _defineProperty(Services, "brandVisibility", /*#__PURE__*/function () {
1663
+ var _ref78 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee78(data) {
1664
+ var response;
1665
+ return _regeneratorRuntime.wrap(function _callee78$(_context78) {
1666
+ while (1) switch (_context78.prev = _context78.next) {
1667
+ case 0:
1668
+ _context78.next = 2;
1669
+ return api.patch("/brands/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
1670
+ case 2:
1671
+ response = _context78.sent;
1672
+ return _context78.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1673
+ case 4:
1674
+ case "end":
1675
+ return _context78.stop();
1676
+ }
1677
+ }, _callee78);
1678
+ }));
1679
+ return function (_x127) {
1680
+ return _ref78.apply(this, arguments);
1681
+ };
1682
+ }());
1683
+ // 🛠 chassistypes
1684
+ _defineProperty(Services, "getChassiTypes", /*#__PURE__*/function () {
1685
+ var _ref79 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee79(size, page, query, visibility) {
1686
+ var response;
1687
+ return _regeneratorRuntime.wrap(function _callee79$(_context79) {
1688
+ while (1) switch (_context79.prev = _context79.next) {
1689
+ case 0:
1690
+ _context79.next = 2;
1691
+ return api.get("/chassistypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1692
+ case 2:
1693
+ response = _context79.sent;
1694
+ return _context79.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1695
+ case 4:
1696
+ case "end":
1697
+ return _context79.stop();
1698
+ }
1699
+ }, _callee79);
1700
+ }));
1701
+ return function (_x128, _x129, _x130, _x131) {
1702
+ return _ref79.apply(this, arguments);
1703
+ };
1704
+ }());
1705
+ _defineProperty(Services, "getChassiTypesAll", /*#__PURE__*/function () {
1706
+ var _ref80 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee80(visibility) {
1707
+ var response;
1708
+ return _regeneratorRuntime.wrap(function _callee80$(_context80) {
1709
+ while (1) switch (_context80.prev = _context80.next) {
1710
+ case 0:
1711
+ _context80.next = 2;
1712
+ return api.get("/chassistypes?visibility=".concat(visibility));
1713
+ case 2:
1714
+ response = _context80.sent;
1715
+ return _context80.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1716
+ case 4:
1717
+ case "end":
1718
+ return _context80.stop();
1719
+ }
1720
+ }, _callee80);
1721
+ }));
1722
+ return function (_x132) {
1723
+ return _ref80.apply(this, arguments);
1724
+ };
1725
+ }());
1726
+ _defineProperty(Services, "addChassisType", /*#__PURE__*/function () {
1727
+ var _ref81 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee81(value) {
1728
+ return _regeneratorRuntime.wrap(function _callee81$(_context81) {
1729
+ while (1) switch (_context81.prev = _context81.next) {
1730
+ case 0:
1731
+ return _context81.abrupt("return", api.post("/chassistypes", value).then(function (r) {
1732
+ return r.data;
1733
+ }));
1734
+ case 1:
1735
+ case "end":
1736
+ return _context81.stop();
1737
+ }
1738
+ }, _callee81);
1739
+ }));
1740
+ return function (_x133) {
1741
+ return _ref81.apply(this, arguments);
1742
+ };
1743
+ }());
1744
+ _defineProperty(Services, "editChassisType", /*#__PURE__*/function () {
1745
+ var _ref82 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee82(value) {
1746
+ return _regeneratorRuntime.wrap(function _callee82$(_context82) {
1747
+ while (1) switch (_context82.prev = _context82.next) {
1748
+ case 0:
1749
+ return _context82.abrupt("return", api.put("/chassistypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
1750
+ return r.data;
1751
+ }));
1752
+ case 1:
1753
+ case "end":
1754
+ return _context82.stop();
1755
+ }
1756
+ }, _callee82);
1757
+ }));
1758
+ return function (_x134) {
1759
+ return _ref82.apply(this, arguments);
1760
+ };
1761
+ }());
1762
+ _defineProperty(Services, "deleteChassisType", /*#__PURE__*/function () {
1763
+ var _ref83 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee83(id) {
1764
+ return _regeneratorRuntime.wrap(function _callee83$(_context83) {
1765
+ while (1) switch (_context83.prev = _context83.next) {
1766
+ case 0:
1767
+ return _context83.abrupt("return", api["delete"]("/chassistypes/".concat(id)).then(function (r) {
1768
+ return r.data;
1769
+ }));
1770
+ case 1:
1771
+ case "end":
1772
+ return _context83.stop();
1773
+ }
1774
+ }, _callee83);
1775
+ }));
1776
+ return function (_x135) {
1777
+ return _ref83.apply(this, arguments);
1778
+ };
1779
+ }());
1780
+ _defineProperty(Services, "chassisTypeVisibility", /*#__PURE__*/function () {
1781
+ var _ref84 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee84(data) {
1782
+ return _regeneratorRuntime.wrap(function _callee84$(_context84) {
1783
+ while (1) switch (_context84.prev = _context84.next) {
1784
+ case 0:
1785
+ return _context84.abrupt("return", api.patch("/chassistypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
1786
+ return r.data;
1787
+ }));
1788
+ case 1:
1789
+ case "end":
1790
+ return _context84.stop();
1791
+ }
1792
+ }, _callee84);
1793
+ }));
1794
+ return function (_x136) {
1795
+ return _ref84.apply(this, arguments);
1796
+ };
1797
+ }());
1798
+ // 🎨 colors
1799
+ _defineProperty(Services, "getColor", /*#__PURE__*/function () {
1800
+ var _ref85 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee85(size, page, query, visibility) {
1801
+ var response;
1802
+ return _regeneratorRuntime.wrap(function _callee85$(_context85) {
1803
+ while (1) switch (_context85.prev = _context85.next) {
1804
+ case 0:
1805
+ _context85.next = 2;
1806
+ return api.get("/colors/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1807
+ case 2:
1808
+ response = _context85.sent;
1809
+ return _context85.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1810
+ case 4:
1811
+ case "end":
1812
+ return _context85.stop();
1813
+ }
1814
+ }, _callee85);
1815
+ }));
1816
+ return function (_x137, _x138, _x139, _x140) {
1817
+ return _ref85.apply(this, arguments);
1818
+ };
1819
+ }());
1820
+ _defineProperty(Services, "getColorAll", /*#__PURE__*/function () {
1821
+ var _ref86 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee86(visibility) {
1822
+ return _regeneratorRuntime.wrap(function _callee86$(_context86) {
1823
+ while (1) switch (_context86.prev = _context86.next) {
1824
+ case 0:
1825
+ return _context86.abrupt("return", api.get("/colors?visibility=".concat(visibility)).then(function (r) {
1826
+ return r.data;
1827
+ }));
1828
+ case 1:
1829
+ case "end":
1830
+ return _context86.stop();
1831
+ }
1832
+ }, _callee86);
1833
+ }));
1834
+ return function (_x141) {
1835
+ return _ref86.apply(this, arguments);
1836
+ };
1837
+ }());
1838
+ _defineProperty(Services, "addColor", /*#__PURE__*/function () {
1839
+ var _ref87 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee87(value) {
1840
+ return _regeneratorRuntime.wrap(function _callee87$(_context87) {
1841
+ while (1) switch (_context87.prev = _context87.next) {
1842
+ case 0:
1843
+ return _context87.abrupt("return", api.post("/colors", value).then(function (r) {
1844
+ return r.data;
1845
+ }));
1846
+ case 1:
1847
+ case "end":
1848
+ return _context87.stop();
1849
+ }
1850
+ }, _callee87);
1851
+ }));
1852
+ return function (_x142) {
1853
+ return _ref87.apply(this, arguments);
1854
+ };
1855
+ }());
1856
+ _defineProperty(Services, "editColor", /*#__PURE__*/function () {
1857
+ var _ref88 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee88(value) {
1858
+ return _regeneratorRuntime.wrap(function _callee88$(_context88) {
1859
+ while (1) switch (_context88.prev = _context88.next) {
1860
+ case 0:
1861
+ return _context88.abrupt("return", api.put("/colors/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
1862
+ return r.data;
1863
+ }));
1864
+ case 1:
1865
+ case "end":
1866
+ return _context88.stop();
1867
+ }
1868
+ }, _callee88);
1869
+ }));
1870
+ return function (_x143) {
1871
+ return _ref88.apply(this, arguments);
1872
+ };
1873
+ }());
1874
+ _defineProperty(Services, "deleteColor", /*#__PURE__*/function () {
1875
+ var _ref89 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee89(id) {
1876
+ return _regeneratorRuntime.wrap(function _callee89$(_context89) {
1877
+ while (1) switch (_context89.prev = _context89.next) {
1878
+ case 0:
1879
+ return _context89.abrupt("return", api["delete"]("/colors/".concat(id)).then(function (r) {
1880
+ return r.data;
1881
+ }));
1882
+ case 1:
1883
+ case "end":
1884
+ return _context89.stop();
1885
+ }
1886
+ }, _callee89);
1887
+ }));
1888
+ return function (_x144) {
1889
+ return _ref89.apply(this, arguments);
1890
+ };
1891
+ }());
1892
+ _defineProperty(Services, "colorVisibility", /*#__PURE__*/function () {
1893
+ var _ref90 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee90(data) {
1894
+ return _regeneratorRuntime.wrap(function _callee90$(_context90) {
1895
+ while (1) switch (_context90.prev = _context90.next) {
1896
+ case 0:
1897
+ return _context90.abrupt("return", api.patch("/colors/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
1898
+ return r.data;
1899
+ }));
1900
+ case 1:
1901
+ case "end":
1902
+ return _context90.stop();
1903
+ }
1904
+ }, _callee90);
1905
+ }));
1906
+ return function (_x145) {
1907
+ return _ref90.apply(this, arguments);
1908
+ };
1909
+ }());
1910
+ // 🔧 enginetypes
1911
+ _defineProperty(Services, "getEnginetype", /*#__PURE__*/function () {
1912
+ var _ref91 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee91(size, page, query, visibility) {
1913
+ var response;
1914
+ return _regeneratorRuntime.wrap(function _callee91$(_context91) {
1915
+ while (1) switch (_context91.prev = _context91.next) {
1916
+ case 0:
1917
+ _context91.next = 2;
1918
+ return api.get("/enginetypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1919
+ case 2:
1920
+ response = _context91.sent;
1921
+ return _context91.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1922
+ case 4:
1923
+ case "end":
1924
+ return _context91.stop();
1925
+ }
1926
+ }, _callee91);
1927
+ }));
1928
+ return function (_x146, _x147, _x148, _x149) {
1929
+ return _ref91.apply(this, arguments);
1930
+ };
1931
+ }());
1932
+ _defineProperty(Services, "getEnginetypeAll", /*#__PURE__*/function () {
1933
+ var _ref92 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee92(visibility) {
1934
+ return _regeneratorRuntime.wrap(function _callee92$(_context92) {
1935
+ while (1) switch (_context92.prev = _context92.next) {
1936
+ case 0:
1937
+ return _context92.abrupt("return", api.get("/enginetypes?visibility=".concat(visibility)).then(function (r) {
1938
+ return r.data;
1939
+ }));
1940
+ case 1:
1941
+ case "end":
1942
+ return _context92.stop();
1943
+ }
1944
+ }, _callee92);
1945
+ }));
1946
+ return function (_x150) {
1947
+ return _ref92.apply(this, arguments);
1948
+ };
1949
+ }());
1950
+ _defineProperty(Services, "addEnginetype", /*#__PURE__*/function () {
1951
+ var _ref93 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee93(value) {
1952
+ return _regeneratorRuntime.wrap(function _callee93$(_context93) {
1953
+ while (1) switch (_context93.prev = _context93.next) {
1954
+ case 0:
1955
+ return _context93.abrupt("return", api.post("/enginetypes", value).then(function (r) {
1956
+ return r.data;
1957
+ }));
1958
+ case 1:
1959
+ case "end":
1960
+ return _context93.stop();
1961
+ }
1962
+ }, _callee93);
1963
+ }));
1964
+ return function (_x151) {
1965
+ return _ref93.apply(this, arguments);
1966
+ };
1967
+ }());
1968
+ _defineProperty(Services, "editEnginetype", /*#__PURE__*/function () {
1969
+ var _ref94 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee94(value) {
1970
+ return _regeneratorRuntime.wrap(function _callee94$(_context94) {
1971
+ while (1) switch (_context94.prev = _context94.next) {
1972
+ case 0:
1973
+ return _context94.abrupt("return", api.put("/enginetypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
1974
+ return r.data;
1975
+ }));
1976
+ case 1:
1977
+ case "end":
1978
+ return _context94.stop();
1979
+ }
1980
+ }, _callee94);
1981
+ }));
1982
+ return function (_x152) {
1983
+ return _ref94.apply(this, arguments);
1984
+ };
1985
+ }());
1986
+ _defineProperty(Services, "deleteEnginetype", /*#__PURE__*/function () {
1987
+ var _ref95 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee95(id) {
1988
+ return _regeneratorRuntime.wrap(function _callee95$(_context95) {
1989
+ while (1) switch (_context95.prev = _context95.next) {
1990
+ case 0:
1991
+ return _context95.abrupt("return", api["delete"]("/enginetypes/".concat(id)).then(function (r) {
1992
+ return r.data;
1993
+ }));
1994
+ case 1:
1995
+ case "end":
1996
+ return _context95.stop();
1997
+ }
1998
+ }, _callee95);
1999
+ }));
2000
+ return function (_x153) {
2001
+ return _ref95.apply(this, arguments);
2002
+ };
2003
+ }());
2004
+ _defineProperty(Services, "enginetypeVisibility", /*#__PURE__*/function () {
2005
+ var _ref96 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee96(data) {
2006
+ return _regeneratorRuntime.wrap(function _callee96$(_context96) {
2007
+ while (1) switch (_context96.prev = _context96.next) {
2008
+ case 0:
2009
+ return _context96.abrupt("return", api.patch("/enginetypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2010
+ return r.data;
2011
+ }));
2012
+ case 1:
2013
+ case "end":
2014
+ return _context96.stop();
2015
+ }
2016
+ }, _callee96);
2017
+ }));
2018
+ return function (_x154) {
2019
+ return _ref96.apply(this, arguments);
2020
+ };
2021
+ }());
2022
+ // ⚙️ gearboxtypes
2023
+ _defineProperty(Services, "getGearboxtype", /*#__PURE__*/function () {
2024
+ var _ref97 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee97(size, page, query, visibility) {
2025
+ var response;
2026
+ return _regeneratorRuntime.wrap(function _callee97$(_context97) {
2027
+ while (1) switch (_context97.prev = _context97.next) {
2028
+ case 0:
2029
+ _context97.next = 2;
2030
+ return api.get("/gearboxtypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2031
+ case 2:
2032
+ response = _context97.sent;
2033
+ return _context97.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2034
+ case 4:
2035
+ case "end":
2036
+ return _context97.stop();
2037
+ }
2038
+ }, _callee97);
2039
+ }));
2040
+ return function (_x155, _x156, _x157, _x158) {
2041
+ return _ref97.apply(this, arguments);
2042
+ };
2043
+ }());
2044
+ _defineProperty(Services, "getGearboxtypeAll", /*#__PURE__*/function () {
2045
+ var _ref98 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee98(visibility) {
2046
+ return _regeneratorRuntime.wrap(function _callee98$(_context98) {
2047
+ while (1) switch (_context98.prev = _context98.next) {
2048
+ case 0:
2049
+ return _context98.abrupt("return", api.get("/gearboxtypes?visibility=".concat(visibility)).then(function (r) {
2050
+ return r.data;
2051
+ }));
2052
+ case 1:
2053
+ case "end":
2054
+ return _context98.stop();
2055
+ }
2056
+ }, _callee98);
2057
+ }));
2058
+ return function (_x159) {
2059
+ return _ref98.apply(this, arguments);
2060
+ };
2061
+ }());
2062
+ _defineProperty(Services, "addGearboxtype", /*#__PURE__*/function () {
2063
+ var _ref99 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee99(value) {
2064
+ return _regeneratorRuntime.wrap(function _callee99$(_context99) {
2065
+ while (1) switch (_context99.prev = _context99.next) {
2066
+ case 0:
2067
+ return _context99.abrupt("return", api.post("/gearboxtypes", value).then(function (r) {
2068
+ return r.data;
2069
+ }));
2070
+ case 1:
2071
+ case "end":
2072
+ return _context99.stop();
2073
+ }
2074
+ }, _callee99);
2075
+ }));
2076
+ return function (_x160) {
2077
+ return _ref99.apply(this, arguments);
2078
+ };
2079
+ }());
2080
+ _defineProperty(Services, "editGearboxtype", /*#__PURE__*/function () {
2081
+ var _ref100 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee100(value) {
2082
+ return _regeneratorRuntime.wrap(function _callee100$(_context100) {
2083
+ while (1) switch (_context100.prev = _context100.next) {
2084
+ case 0:
2085
+ return _context100.abrupt("return", api.put("/gearboxtypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2086
+ return r.data;
2087
+ }));
2088
+ case 1:
2089
+ case "end":
2090
+ return _context100.stop();
2091
+ }
2092
+ }, _callee100);
2093
+ }));
2094
+ return function (_x161) {
2095
+ return _ref100.apply(this, arguments);
2096
+ };
2097
+ }());
2098
+ _defineProperty(Services, "deleteGearboxtype", /*#__PURE__*/function () {
2099
+ var _ref101 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee101(id) {
2100
+ return _regeneratorRuntime.wrap(function _callee101$(_context101) {
2101
+ while (1) switch (_context101.prev = _context101.next) {
2102
+ case 0:
2103
+ return _context101.abrupt("return", api["delete"]("/gearboxtypes/".concat(id)).then(function (r) {
2104
+ return r.data;
2105
+ }));
2106
+ case 1:
2107
+ case "end":
2108
+ return _context101.stop();
2109
+ }
2110
+ }, _callee101);
2111
+ }));
2112
+ return function (_x162) {
2113
+ return _ref101.apply(this, arguments);
2114
+ };
2115
+ }());
2116
+ _defineProperty(Services, "gearboxtypeVisibility", /*#__PURE__*/function () {
2117
+ var _ref102 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee102(data) {
2118
+ return _regeneratorRuntime.wrap(function _callee102$(_context102) {
2119
+ while (1) switch (_context102.prev = _context102.next) {
2120
+ case 0:
2121
+ return _context102.abrupt("return", api.patch("/gearboxtypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2122
+ return r.data;
2123
+ }));
2124
+ case 1:
2125
+ case "end":
2126
+ return _context102.stop();
2127
+ }
2128
+ }, _callee102);
2129
+ }));
2130
+ return function (_x163) {
2131
+ return _ref102.apply(this, arguments);
2132
+ };
2133
+ }());
2134
+ // 🏛 issuedauthorities
2135
+ _defineProperty(Services, "getIssuedauthorities", /*#__PURE__*/function () {
2136
+ var _ref103 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee103(size, page, query, visibility) {
2137
+ var response;
2138
+ return _regeneratorRuntime.wrap(function _callee103$(_context103) {
2139
+ while (1) switch (_context103.prev = _context103.next) {
2140
+ case 0:
2141
+ _context103.next = 2;
2142
+ return api.get("/issuedauthorities/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2143
+ case 2:
2144
+ response = _context103.sent;
2145
+ return _context103.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2146
+ case 4:
2147
+ case "end":
2148
+ return _context103.stop();
2149
+ }
2150
+ }, _callee103);
2151
+ }));
2152
+ return function (_x164, _x165, _x166, _x167) {
2153
+ return _ref103.apply(this, arguments);
2154
+ };
2155
+ }());
2156
+ _defineProperty(Services, "getIssuedauthoritiesAll", /*#__PURE__*/function () {
2157
+ var _ref104 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee104(visibility) {
2158
+ return _regeneratorRuntime.wrap(function _callee104$(_context104) {
2159
+ while (1) switch (_context104.prev = _context104.next) {
2160
+ case 0:
2161
+ return _context104.abrupt("return", api.get("/issuedauthorities?visibility=".concat(visibility)).then(function (r) {
2162
+ return r.data;
2163
+ }));
2164
+ case 1:
2165
+ case "end":
2166
+ return _context104.stop();
2167
+ }
2168
+ }, _callee104);
2169
+ }));
2170
+ return function (_x168) {
2171
+ return _ref104.apply(this, arguments);
2172
+ };
2173
+ }());
2174
+ _defineProperty(Services, "addIssuedauthorities", /*#__PURE__*/function () {
2175
+ var _ref105 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee105(value) {
2176
+ return _regeneratorRuntime.wrap(function _callee105$(_context105) {
2177
+ while (1) switch (_context105.prev = _context105.next) {
2178
+ case 0:
2179
+ return _context105.abrupt("return", api.post("/issuedauthorities", value).then(function (r) {
2180
+ return r.data;
2181
+ }));
2182
+ case 1:
2183
+ case "end":
2184
+ return _context105.stop();
2185
+ }
2186
+ }, _callee105);
2187
+ }));
2188
+ return function (_x169) {
2189
+ return _ref105.apply(this, arguments);
2190
+ };
2191
+ }());
2192
+ _defineProperty(Services, "editIssuedauthorities", /*#__PURE__*/function () {
2193
+ var _ref106 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee106(value) {
2194
+ return _regeneratorRuntime.wrap(function _callee106$(_context106) {
2195
+ while (1) switch (_context106.prev = _context106.next) {
2196
+ case 0:
2197
+ return _context106.abrupt("return", api.put("/issuedauthorities/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2198
+ return r.data;
2199
+ }));
2200
+ case 1:
2201
+ case "end":
2202
+ return _context106.stop();
2203
+ }
2204
+ }, _callee106);
2205
+ }));
2206
+ return function (_x170) {
2207
+ return _ref106.apply(this, arguments);
2208
+ };
2209
+ }());
2210
+ _defineProperty(Services, "deleteIssuedauthorities", /*#__PURE__*/function () {
2211
+ var _ref107 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee107(id) {
2212
+ return _regeneratorRuntime.wrap(function _callee107$(_context107) {
2213
+ while (1) switch (_context107.prev = _context107.next) {
2214
+ case 0:
2215
+ return _context107.abrupt("return", api["delete"]("/issuedauthorities/".concat(id)).then(function (r) {
2216
+ return r.data;
2217
+ }));
2218
+ case 1:
2219
+ case "end":
2220
+ return _context107.stop();
2221
+ }
2222
+ }, _callee107);
2223
+ }));
2224
+ return function (_x171) {
2225
+ return _ref107.apply(this, arguments);
2226
+ };
2227
+ }());
2228
+ _defineProperty(Services, "issuedauthoritiesVisibility", /*#__PURE__*/function () {
2229
+ var _ref108 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee108(data) {
2230
+ return _regeneratorRuntime.wrap(function _callee108$(_context108) {
2231
+ while (1) switch (_context108.prev = _context108.next) {
2232
+ case 0:
2233
+ return _context108.abrupt("return", api.patch("/issuedauthorities/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2234
+ return r.data;
2235
+ }));
2236
+ case 1:
2237
+ case "end":
2238
+ return _context108.stop();
2239
+ }
2240
+ }, _callee108);
2241
+ }));
2242
+ return function (_x172) {
2243
+ return _ref108.apply(this, arguments);
2244
+ };
2245
+ }());
2246
+ // 🚗 models
2247
+ _defineProperty(Services, "getModel", /*#__PURE__*/function () {
2248
+ var _ref109 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee109(size, page, query, brands, visibility) {
2249
+ var response;
2250
+ return _regeneratorRuntime.wrap(function _callee109$(_context109) {
2251
+ while (1) switch (_context109.prev = _context109.next) {
2252
+ case 0:
2253
+ _context109.next = 2;
2254
+ return api.get("/models/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name, "&brands=").concat(brands));
2255
+ case 2:
2256
+ response = _context109.sent;
2257
+ return _context109.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2258
+ case 4:
2259
+ case "end":
2260
+ return _context109.stop();
2261
+ }
2262
+ }, _callee109);
2263
+ }));
2264
+ return function (_x173, _x174, _x175, _x176, _x177) {
2265
+ return _ref109.apply(this, arguments);
2266
+ };
2267
+ }());
2268
+ _defineProperty(Services, "getModelAll", /*#__PURE__*/function () {
2269
+ var _ref110 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee110(visibility, brands) {
2270
+ return _regeneratorRuntime.wrap(function _callee110$(_context110) {
2271
+ while (1) switch (_context110.prev = _context110.next) {
2272
+ case 0:
2273
+ return _context110.abrupt("return", api.get("/models?visibility=".concat(visibility, "&brands=").concat(brands)).then(function (r) {
2274
+ return r.data;
2275
+ }));
2276
+ case 1:
2277
+ case "end":
2278
+ return _context110.stop();
2279
+ }
2280
+ }, _callee110);
2281
+ }));
2282
+ return function (_x178, _x179) {
2283
+ return _ref110.apply(this, arguments);
2284
+ };
2285
+ }());
2286
+ _defineProperty(Services, "addModel", /*#__PURE__*/function () {
2287
+ var _ref111 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee111(value) {
2288
+ return _regeneratorRuntime.wrap(function _callee111$(_context111) {
2289
+ while (1) switch (_context111.prev = _context111.next) {
2290
+ case 0:
2291
+ return _context111.abrupt("return", api.post("/models", value).then(function (r) {
2292
+ return r.data;
2293
+ }));
2294
+ case 1:
2295
+ case "end":
2296
+ return _context111.stop();
2297
+ }
2298
+ }, _callee111);
2299
+ }));
2300
+ return function (_x180) {
2301
+ return _ref111.apply(this, arguments);
2302
+ };
2303
+ }());
2304
+ _defineProperty(Services, "editModel", /*#__PURE__*/function () {
2305
+ var _ref112 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee112(value) {
2306
+ return _regeneratorRuntime.wrap(function _callee112$(_context112) {
2307
+ while (1) switch (_context112.prev = _context112.next) {
2308
+ case 0:
2309
+ return _context112.abrupt("return", api.put("/models/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2310
+ return r.data;
2311
+ }));
2312
+ case 1:
2313
+ case "end":
2314
+ return _context112.stop();
2315
+ }
2316
+ }, _callee112);
2317
+ }));
2318
+ return function (_x181) {
2319
+ return _ref112.apply(this, arguments);
2320
+ };
2321
+ }());
2322
+ _defineProperty(Services, "deleteModel", /*#__PURE__*/function () {
2323
+ var _ref113 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee113(id) {
2324
+ return _regeneratorRuntime.wrap(function _callee113$(_context113) {
2325
+ while (1) switch (_context113.prev = _context113.next) {
2326
+ case 0:
2327
+ return _context113.abrupt("return", api["delete"]("/models/".concat(id)).then(function (r) {
2328
+ return r.data;
2329
+ }));
2330
+ case 1:
2331
+ case "end":
2332
+ return _context113.stop();
2333
+ }
2334
+ }, _callee113);
2335
+ }));
2336
+ return function (_x182) {
2337
+ return _ref113.apply(this, arguments);
2338
+ };
2339
+ }());
2340
+ _defineProperty(Services, "modelsVisibility", /*#__PURE__*/function () {
2341
+ var _ref114 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee114(data) {
2342
+ return _regeneratorRuntime.wrap(function _callee114$(_context114) {
2343
+ while (1) switch (_context114.prev = _context114.next) {
2344
+ case 0:
2345
+ return _context114.abrupt("return", api.patch("/models/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2346
+ return r.data;
2347
+ }));
2348
+ case 1:
2349
+ case "end":
2350
+ return _context114.stop();
2351
+ }
2352
+ }, _callee114);
2353
+ }));
2354
+ return function (_x183) {
2355
+ return _ref114.apply(this, arguments);
2356
+ };
2357
+ }());
2358
+ // 📄 ownershiptypes
2359
+ _defineProperty(Services, "getOwnershiptype", /*#__PURE__*/function () {
2360
+ var _ref115 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee115(size, page, query, visibility) {
2361
+ var response;
2362
+ return _regeneratorRuntime.wrap(function _callee115$(_context115) {
2363
+ while (1) switch (_context115.prev = _context115.next) {
2364
+ case 0:
2365
+ _context115.next = 2;
2366
+ return api.get("/ownershiptypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2367
+ case 2:
2368
+ response = _context115.sent;
2369
+ return _context115.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2370
+ case 4:
2371
+ case "end":
2372
+ return _context115.stop();
2373
+ }
2374
+ }, _callee115);
2375
+ }));
2376
+ return function (_x184, _x185, _x186, _x187) {
2377
+ return _ref115.apply(this, arguments);
2378
+ };
2379
+ }());
2380
+ _defineProperty(Services, "getOwnershiptypeAll", /*#__PURE__*/function () {
2381
+ var _ref116 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee116(visibility) {
2382
+ return _regeneratorRuntime.wrap(function _callee116$(_context116) {
2383
+ while (1) switch (_context116.prev = _context116.next) {
2384
+ case 0:
2385
+ return _context116.abrupt("return", api.get("/ownershiptypes?visibility=".concat(visibility)).then(function (r) {
2386
+ return r.data;
2387
+ }));
2388
+ case 1:
2389
+ case "end":
2390
+ return _context116.stop();
2391
+ }
2392
+ }, _callee116);
2393
+ }));
2394
+ return function (_x188) {
2395
+ return _ref116.apply(this, arguments);
2396
+ };
2397
+ }());
2398
+ _defineProperty(Services, "addOwnershiptype", /*#__PURE__*/function () {
2399
+ var _ref117 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee117(value) {
2400
+ return _regeneratorRuntime.wrap(function _callee117$(_context117) {
2401
+ while (1) switch (_context117.prev = _context117.next) {
2402
+ case 0:
2403
+ return _context117.abrupt("return", api.post("/ownershiptypes", value).then(function (r) {
2404
+ return r.data;
2405
+ }));
2406
+ case 1:
2407
+ case "end":
2408
+ return _context117.stop();
2409
+ }
2410
+ }, _callee117);
2411
+ }));
2412
+ return function (_x189) {
2413
+ return _ref117.apply(this, arguments);
2414
+ };
2415
+ }());
2416
+ _defineProperty(Services, "editOwnershiptype", /*#__PURE__*/function () {
2417
+ var _ref118 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee118(value) {
2418
+ return _regeneratorRuntime.wrap(function _callee118$(_context118) {
2419
+ while (1) switch (_context118.prev = _context118.next) {
2420
+ case 0:
2421
+ return _context118.abrupt("return", api.put("/ownershiptypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2422
+ return r.data;
2423
+ }));
2424
+ case 1:
2425
+ case "end":
2426
+ return _context118.stop();
2427
+ }
2428
+ }, _callee118);
2429
+ }));
2430
+ return function (_x190) {
2431
+ return _ref118.apply(this, arguments);
2432
+ };
2433
+ }());
2434
+ _defineProperty(Services, "deleteOwnershiptype", /*#__PURE__*/function () {
2435
+ var _ref119 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee119(id) {
2436
+ return _regeneratorRuntime.wrap(function _callee119$(_context119) {
2437
+ while (1) switch (_context119.prev = _context119.next) {
2438
+ case 0:
2439
+ return _context119.abrupt("return", api["delete"]("/ownershiptypes/".concat(id)).then(function (r) {
2440
+ return r.data;
2441
+ }));
2442
+ case 1:
2443
+ case "end":
2444
+ return _context119.stop();
2445
+ }
2446
+ }, _callee119);
2447
+ }));
2448
+ return function (_x191) {
2449
+ return _ref119.apply(this, arguments);
2450
+ };
2451
+ }());
2452
+ _defineProperty(Services, "ownershiptypesVisibility", /*#__PURE__*/function () {
2453
+ var _ref120 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee120(data) {
2454
+ return _regeneratorRuntime.wrap(function _callee120$(_context120) {
2455
+ while (1) switch (_context120.prev = _context120.next) {
2456
+ case 0:
2457
+ return _context120.abrupt("return", api.patch("/ownershiptypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2458
+ return r.data;
2459
+ }));
2460
+ case 1:
2461
+ case "end":
2462
+ return _context120.stop();
2463
+ }
2464
+ }, _callee120);
2465
+ }));
2466
+ return function (_x192) {
2467
+ return _ref120.apply(this, arguments);
2468
+ };
2469
+ }());
2470
+ // 🏢 organisationrecords
2471
+ _defineProperty(Services, "getOrganisationrecords", /*#__PURE__*/function () {
2472
+ var _ref121 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee121(size, page, query, visibility) {
2473
+ var response;
2474
+ return _regeneratorRuntime.wrap(function _callee121$(_context121) {
2475
+ while (1) switch (_context121.prev = _context121.next) {
2476
+ case 0:
2477
+ _context121.next = 2;
2478
+ return api.get("/organisationrecords/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2479
+ case 2:
2480
+ response = _context121.sent;
2481
+ return _context121.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2482
+ case 4:
2483
+ case "end":
2484
+ return _context121.stop();
2485
+ }
2486
+ }, _callee121);
2487
+ }));
2488
+ return function (_x193, _x194, _x195, _x196) {
2489
+ return _ref121.apply(this, arguments);
2490
+ };
2491
+ }());
2492
+ _defineProperty(Services, "getOrganisationrecordsAll", /*#__PURE__*/function () {
2493
+ var _ref122 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee122(visibility) {
2494
+ return _regeneratorRuntime.wrap(function _callee122$(_context122) {
2495
+ while (1) switch (_context122.prev = _context122.next) {
2496
+ case 0:
2497
+ return _context122.abrupt("return", api.get("/organisationrecords?visibility=".concat(visibility)).then(function (r) {
2498
+ return r.data;
2499
+ }));
2500
+ case 1:
2501
+ case "end":
2502
+ return _context122.stop();
2503
+ }
2504
+ }, _callee122);
2505
+ }));
2506
+ return function (_x197) {
2507
+ return _ref122.apply(this, arguments);
2508
+ };
2509
+ }());
2510
+ _defineProperty(Services, "addOrganisationrecords", /*#__PURE__*/function () {
2511
+ var _ref123 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee123(value) {
2512
+ return _regeneratorRuntime.wrap(function _callee123$(_context123) {
2513
+ while (1) switch (_context123.prev = _context123.next) {
2514
+ case 0:
2515
+ return _context123.abrupt("return", api.post("/organisationrecords", value).then(function (r) {
2516
+ return r.data;
2517
+ }));
2518
+ case 1:
2519
+ case "end":
2520
+ return _context123.stop();
2521
+ }
2522
+ }, _callee123);
2523
+ }));
2524
+ return function (_x198) {
2525
+ return _ref123.apply(this, arguments);
2526
+ };
2527
+ }());
2528
+ _defineProperty(Services, "editOrganisationrecords", /*#__PURE__*/function () {
2529
+ var _ref124 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee124(value) {
2530
+ return _regeneratorRuntime.wrap(function _callee124$(_context124) {
2531
+ while (1) switch (_context124.prev = _context124.next) {
2532
+ case 0:
2533
+ return _context124.abrupt("return", api.put("/organisationrecords/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2534
+ return r.data;
2535
+ }));
2536
+ case 1:
2537
+ case "end":
2538
+ return _context124.stop();
2539
+ }
2540
+ }, _callee124);
2541
+ }));
2542
+ return function (_x199) {
2543
+ return _ref124.apply(this, arguments);
2544
+ };
2545
+ }());
2546
+ _defineProperty(Services, "deleteOrganisationrecords", /*#__PURE__*/function () {
2547
+ var _ref125 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee125(id) {
2548
+ return _regeneratorRuntime.wrap(function _callee125$(_context125) {
2549
+ while (1) switch (_context125.prev = _context125.next) {
2550
+ case 0:
2551
+ return _context125.abrupt("return", api["delete"]("/organisationrecords/".concat(id)).then(function (r) {
2552
+ return r.data;
2553
+ }));
2554
+ case 1:
2555
+ case "end":
2556
+ return _context125.stop();
2557
+ }
2558
+ }, _callee125);
2559
+ }));
2560
+ return function (_x200) {
2561
+ return _ref125.apply(this, arguments);
2562
+ };
2563
+ }());
2564
+ _defineProperty(Services, "organisationrecordsVisibility", /*#__PURE__*/function () {
2565
+ var _ref126 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee126(data) {
2566
+ return _regeneratorRuntime.wrap(function _callee126$(_context126) {
2567
+ while (1) switch (_context126.prev = _context126.next) {
2568
+ case 0:
2569
+ return _context126.abrupt("return", api.patch("/organisationrecords/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2570
+ return r.data;
2571
+ }));
2572
+ case 1:
2573
+ case "end":
2574
+ return _context126.stop();
2575
+ }
2576
+ }, _callee126);
2577
+ }));
2578
+ return function (_x201) {
2579
+ return _ref126.apply(this, arguments);
2580
+ };
2581
+ }());
2582
+ // 📡 transmittertypes
2583
+ _defineProperty(Services, "getTransmittertypes", /*#__PURE__*/function () {
2584
+ var _ref127 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee127(size, page, query, visibility) {
2585
+ var response;
2586
+ return _regeneratorRuntime.wrap(function _callee127$(_context127) {
2587
+ while (1) switch (_context127.prev = _context127.next) {
2588
+ case 0:
2589
+ _context127.next = 2;
2590
+ return api.get("/transmittertypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2591
+ case 2:
2592
+ response = _context127.sent;
2593
+ return _context127.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2594
+ case 4:
2595
+ case "end":
2596
+ return _context127.stop();
2597
+ }
2598
+ }, _callee127);
2599
+ }));
2600
+ return function (_x202, _x203, _x204, _x205) {
2601
+ return _ref127.apply(this, arguments);
2602
+ };
2603
+ }());
2604
+ _defineProperty(Services, "getTransmittertypesAll", /*#__PURE__*/function () {
2605
+ var _ref128 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee128(visibility) {
2606
+ return _regeneratorRuntime.wrap(function _callee128$(_context128) {
2607
+ while (1) switch (_context128.prev = _context128.next) {
2608
+ case 0:
2609
+ return _context128.abrupt("return", api.get("/transmittertypes?visibility=".concat(visibility)).then(function (r) {
2610
+ return r.data;
2611
+ }));
2612
+ case 1:
2613
+ case "end":
2614
+ return _context128.stop();
2615
+ }
2616
+ }, _callee128);
2617
+ }));
2618
+ return function (_x206) {
2619
+ return _ref128.apply(this, arguments);
2620
+ };
2621
+ }());
2622
+ _defineProperty(Services, "addTransmittertypes", /*#__PURE__*/function () {
2623
+ var _ref129 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee129(value) {
2624
+ return _regeneratorRuntime.wrap(function _callee129$(_context129) {
2625
+ while (1) switch (_context129.prev = _context129.next) {
2626
+ case 0:
2627
+ return _context129.abrupt("return", api.post("/transmittertypes", value).then(function (r) {
2628
+ return r.data;
2629
+ }));
2630
+ case 1:
2631
+ case "end":
2632
+ return _context129.stop();
2633
+ }
2634
+ }, _callee129);
2635
+ }));
2636
+ return function (_x207) {
2637
+ return _ref129.apply(this, arguments);
2638
+ };
2639
+ }());
2640
+ _defineProperty(Services, "editTransmittertypes", /*#__PURE__*/function () {
2641
+ var _ref130 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee130(value) {
2642
+ return _regeneratorRuntime.wrap(function _callee130$(_context130) {
2643
+ while (1) switch (_context130.prev = _context130.next) {
2644
+ case 0:
2645
+ return _context130.abrupt("return", api.put("/transmittertypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2646
+ return r.data;
2647
+ }));
2648
+ case 1:
2649
+ case "end":
2650
+ return _context130.stop();
2651
+ }
2652
+ }, _callee130);
2653
+ }));
2654
+ return function (_x208) {
2655
+ return _ref130.apply(this, arguments);
2656
+ };
2657
+ }());
2658
+ _defineProperty(Services, "deleteTransmittertypes", /*#__PURE__*/function () {
2659
+ var _ref131 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee131(id) {
2660
+ return _regeneratorRuntime.wrap(function _callee131$(_context131) {
2661
+ while (1) switch (_context131.prev = _context131.next) {
2662
+ case 0:
2663
+ return _context131.abrupt("return", api["delete"]("/transmittertypes/".concat(id)).then(function (r) {
2664
+ return r.data;
2665
+ }));
2666
+ case 1:
2667
+ case "end":
2668
+ return _context131.stop();
2669
+ }
2670
+ }, _callee131);
2671
+ }));
2672
+ return function (_x209) {
2673
+ return _ref131.apply(this, arguments);
2674
+ };
2675
+ }());
2676
+ _defineProperty(Services, "transmittertypesVisibility", /*#__PURE__*/function () {
2677
+ var _ref132 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee132(data) {
2678
+ return _regeneratorRuntime.wrap(function _callee132$(_context132) {
2679
+ while (1) switch (_context132.prev = _context132.next) {
2680
+ case 0:
2681
+ return _context132.abrupt("return", api.patch("/transmittertypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2682
+ return r.data;
2683
+ }));
2684
+ case 1:
2685
+ case "end":
2686
+ return _context132.stop();
2687
+ }
2688
+ }, _callee132);
2689
+ }));
2690
+ return function (_x210) {
2691
+ return _ref132.apply(this, arguments);
2692
+ };
2693
+ }());
2694
+ // 🚙 vehicles
2695
+ _defineProperty(Services, "getVehicles", /*#__PURE__*/function () {
2696
+ var _ref133 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee133(size, page, query, visibility) {
2697
+ var response;
2698
+ return _regeneratorRuntime.wrap(function _callee133$(_context133) {
2699
+ while (1) switch (_context133.prev = _context133.next) {
2700
+ case 0:
2701
+ _context133.next = 2;
2702
+ return api.get("/vehicles/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2703
+ case 2:
2704
+ response = _context133.sent;
2705
+ return _context133.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2706
+ case 4:
2707
+ case "end":
2708
+ return _context133.stop();
2709
+ }
2710
+ }, _callee133);
2711
+ }));
2712
+ return function (_x211, _x212, _x213, _x214) {
2713
+ return _ref133.apply(this, arguments);
2714
+ };
2715
+ }());
2716
+ _defineProperty(Services, "getVehiclesAll", /*#__PURE__*/function () {
2717
+ var _ref134 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee134(visibility) {
2718
+ return _regeneratorRuntime.wrap(function _callee134$(_context134) {
2719
+ while (1) switch (_context134.prev = _context134.next) {
2720
+ case 0:
2721
+ return _context134.abrupt("return", api.get("/vehicles?visibility=".concat(visibility)).then(function (r) {
2722
+ return r.data;
2723
+ }));
2724
+ case 1:
2725
+ case "end":
2726
+ return _context134.stop();
2727
+ }
2728
+ }, _callee134);
2729
+ }));
2730
+ return function (_x215) {
2731
+ return _ref134.apply(this, arguments);
2732
+ };
2733
+ }());
2734
+ _defineProperty(Services, "addVehicles", /*#__PURE__*/function () {
2735
+ var _ref135 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee135(value) {
2736
+ return _regeneratorRuntime.wrap(function _callee135$(_context135) {
2737
+ while (1) switch (_context135.prev = _context135.next) {
2738
+ case 0:
2739
+ return _context135.abrupt("return", api.post("/vehicles", value).then(function (r) {
2740
+ return r.data;
2741
+ }));
2742
+ case 1:
2743
+ case "end":
2744
+ return _context135.stop();
2745
+ }
2746
+ }, _callee135);
2747
+ }));
2748
+ return function (_x216) {
2749
+ return _ref135.apply(this, arguments);
2750
+ };
2751
+ }());
2752
+ _defineProperty(Services, "editVehicles", /*#__PURE__*/function () {
2753
+ var _ref136 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee136(value) {
2754
+ return _regeneratorRuntime.wrap(function _callee136$(_context136) {
2755
+ while (1) switch (_context136.prev = _context136.next) {
2756
+ case 0:
2757
+ return _context136.abrupt("return", api.put("/vehicles/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2758
+ return r.data;
2759
+ }));
2760
+ case 1:
2761
+ case "end":
2762
+ return _context136.stop();
2763
+ }
2764
+ }, _callee136);
2765
+ }));
2766
+ return function (_x217) {
2767
+ return _ref136.apply(this, arguments);
2768
+ };
2769
+ }());
2770
+ _defineProperty(Services, "deleteVehicles", /*#__PURE__*/function () {
2771
+ var _ref137 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee137(id) {
2772
+ return _regeneratorRuntime.wrap(function _callee137$(_context137) {
2773
+ while (1) switch (_context137.prev = _context137.next) {
2774
+ case 0:
2775
+ return _context137.abrupt("return", api["delete"]("/vehicles/".concat(id)).then(function (r) {
2776
+ return r.data;
2777
+ }));
2778
+ case 1:
2779
+ case "end":
2780
+ return _context137.stop();
2781
+ }
2782
+ }, _callee137);
2783
+ }));
2784
+ return function (_x218) {
2785
+ return _ref137.apply(this, arguments);
2786
+ };
2787
+ }());
2788
+ _defineProperty(Services, "vehiclesVisibility", /*#__PURE__*/function () {
2789
+ var _ref138 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee138(data) {
2790
+ return _regeneratorRuntime.wrap(function _callee138$(_context138) {
2791
+ while (1) switch (_context138.prev = _context138.next) {
2792
+ case 0:
2793
+ return _context138.abrupt("return", api.patch("/vehicles/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2794
+ return r.data;
2795
+ }));
2796
+ case 1:
2797
+ case "end":
2798
+ return _context138.stop();
2799
+ }
2800
+ }, _callee138);
2801
+ }));
2802
+ return function (_x219) {
2803
+ return _ref138.apply(this, arguments);
2804
+ };
2805
+ }());
2806
+ // 🚘 vehicletypes
2807
+ _defineProperty(Services, "getVehicletypes", /*#__PURE__*/function () {
2808
+ var _ref139 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee139(size, page, query, visibility) {
2809
+ var response;
2810
+ return _regeneratorRuntime.wrap(function _callee139$(_context139) {
2811
+ while (1) switch (_context139.prev = _context139.next) {
2812
+ case 0:
2813
+ _context139.next = 2;
2814
+ return api.get("/vehicletypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2815
+ case 2:
2816
+ response = _context139.sent;
2817
+ return _context139.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2818
+ case 4:
2819
+ case "end":
2820
+ return _context139.stop();
2821
+ }
2822
+ }, _callee139);
2823
+ }));
2824
+ return function (_x220, _x221, _x222, _x223) {
2825
+ return _ref139.apply(this, arguments);
2826
+ };
2827
+ }());
2828
+ _defineProperty(Services, "getVehicletypesAll", /*#__PURE__*/function () {
2829
+ var _ref140 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee140(visibility) {
2830
+ return _regeneratorRuntime.wrap(function _callee140$(_context140) {
2831
+ while (1) switch (_context140.prev = _context140.next) {
2832
+ case 0:
2833
+ return _context140.abrupt("return", api.get("/vehicletypes?visibility=".concat(visibility)).then(function (r) {
2834
+ return r.data;
2835
+ }));
2836
+ case 1:
2837
+ case "end":
2838
+ return _context140.stop();
2839
+ }
2840
+ }, _callee140);
2841
+ }));
2842
+ return function (_x224) {
2843
+ return _ref140.apply(this, arguments);
2844
+ };
2845
+ }());
2846
+ _defineProperty(Services, "addVehicletypes", /*#__PURE__*/function () {
2847
+ var _ref141 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee141(value) {
2848
+ return _regeneratorRuntime.wrap(function _callee141$(_context141) {
2849
+ while (1) switch (_context141.prev = _context141.next) {
2850
+ case 0:
2851
+ return _context141.abrupt("return", api.post("/vehicletypes", value).then(function (r) {
2852
+ return r.data;
2853
+ }));
2854
+ case 1:
2855
+ case "end":
2856
+ return _context141.stop();
2857
+ }
2858
+ }, _callee141);
2859
+ }));
2860
+ return function (_x225) {
2861
+ return _ref141.apply(this, arguments);
2862
+ };
2863
+ }());
2864
+ _defineProperty(Services, "editVehicletypes", /*#__PURE__*/function () {
2865
+ var _ref142 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee142(value) {
2866
+ return _regeneratorRuntime.wrap(function _callee142$(_context142) {
2867
+ while (1) switch (_context142.prev = _context142.next) {
2868
+ case 0:
2869
+ return _context142.abrupt("return", api.put("/vehicletypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2870
+ return r.data;
2871
+ }));
2872
+ case 1:
2873
+ case "end":
2874
+ return _context142.stop();
2875
+ }
2876
+ }, _callee142);
2877
+ }));
2878
+ return function (_x226) {
2879
+ return _ref142.apply(this, arguments);
2880
+ };
2881
+ }());
2882
+ _defineProperty(Services, "deleteVehicletypes", /*#__PURE__*/function () {
2883
+ var _ref143 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee143(id) {
2884
+ return _regeneratorRuntime.wrap(function _callee143$(_context143) {
2885
+ while (1) switch (_context143.prev = _context143.next) {
2886
+ case 0:
2887
+ return _context143.abrupt("return", api["delete"]("/vehicletypes/".concat(id)).then(function (r) {
2888
+ return r.data;
2889
+ }));
2890
+ case 1:
2891
+ case "end":
2892
+ return _context143.stop();
2893
+ }
2894
+ }, _callee143);
2895
+ }));
2896
+ return function (_x227) {
2897
+ return _ref143.apply(this, arguments);
2898
+ };
2899
+ }());
2900
+ _defineProperty(Services, "vehicletypesVisibility", /*#__PURE__*/function () {
2901
+ var _ref144 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee144(data) {
2902
+ return _regeneratorRuntime.wrap(function _callee144$(_context144) {
2903
+ while (1) switch (_context144.prev = _context144.next) {
2904
+ case 0:
2905
+ return _context144.abrupt("return", api.patch("/vehicletypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2906
+ return r.data;
2907
+ }));
2908
+ case 1:
2909
+ case "end":
2910
+ return _context144.stop();
2911
+ }
2912
+ }, _callee144);
2913
+ }));
2914
+ return function (_x228) {
2915
+ return _ref144.apply(this, arguments);
2916
+ };
2917
+ }());
2918
+ // 📋 vrcs
2919
+ _defineProperty(Services, "getVrcs", /*#__PURE__*/function () {
2920
+ var _ref145 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee145(size, page, query, visibility) {
2921
+ var response;
2922
+ return _regeneratorRuntime.wrap(function _callee145$(_context145) {
2923
+ while (1) switch (_context145.prev = _context145.next) {
2924
+ case 0:
2925
+ _context145.next = 2;
2926
+ return api.get("/vrcs/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2927
+ case 2:
2928
+ response = _context145.sent;
2929
+ return _context145.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2930
+ case 4:
2931
+ case "end":
2932
+ return _context145.stop();
2933
+ }
2934
+ }, _callee145);
2935
+ }));
2936
+ return function (_x229, _x230, _x231, _x232) {
2937
+ return _ref145.apply(this, arguments);
2938
+ };
2939
+ }());
2940
+ _defineProperty(Services, "getVrcsAll", /*#__PURE__*/function () {
2941
+ var _ref146 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee146(visibility) {
2942
+ return _regeneratorRuntime.wrap(function _callee146$(_context146) {
2943
+ while (1) switch (_context146.prev = _context146.next) {
2944
+ case 0:
2945
+ return _context146.abrupt("return", api.get("/vrcs?visibility=".concat(visibility)).then(function (r) {
2946
+ return r.data;
2947
+ }));
2948
+ case 1:
2949
+ case "end":
2950
+ return _context146.stop();
2951
+ }
2952
+ }, _callee146);
2953
+ }));
2954
+ return function (_x233) {
2955
+ return _ref146.apply(this, arguments);
2956
+ };
2957
+ }());
2958
+ _defineProperty(Services, "addVrcs", /*#__PURE__*/function () {
2959
+ var _ref147 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee147(value) {
2960
+ return _regeneratorRuntime.wrap(function _callee147$(_context147) {
2961
+ while (1) switch (_context147.prev = _context147.next) {
2962
+ case 0:
2963
+ return _context147.abrupt("return", api.post("/vrcs", value).then(function (r) {
2964
+ return r.data;
2965
+ }));
2966
+ case 1:
2967
+ case "end":
2968
+ return _context147.stop();
2969
+ }
2970
+ }, _callee147);
2971
+ }));
2972
+ return function (_x234) {
2973
+ return _ref147.apply(this, arguments);
2974
+ };
2975
+ }());
2976
+ _defineProperty(Services, "editVrcs", /*#__PURE__*/function () {
2977
+ var _ref148 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee148(value) {
2978
+ return _regeneratorRuntime.wrap(function _callee148$(_context148) {
2979
+ while (1) switch (_context148.prev = _context148.next) {
2980
+ case 0:
2981
+ return _context148.abrupt("return", api.put("/vrcs/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2982
+ return r.data;
2983
+ }));
2984
+ case 1:
2985
+ case "end":
2986
+ return _context148.stop();
2987
+ }
2988
+ }, _callee148);
2989
+ }));
2990
+ return function (_x235) {
2991
+ return _ref148.apply(this, arguments);
2992
+ };
2993
+ }());
2994
+ _defineProperty(Services, "deleteVrcs", /*#__PURE__*/function () {
2995
+ var _ref149 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee149(id) {
2996
+ return _regeneratorRuntime.wrap(function _callee149$(_context149) {
2997
+ while (1) switch (_context149.prev = _context149.next) {
2998
+ case 0:
2999
+ return _context149.abrupt("return", api["delete"]("/vrcs/".concat(id)).then(function (r) {
3000
+ return r.data;
3001
+ }));
3002
+ case 1:
3003
+ case "end":
3004
+ return _context149.stop();
3005
+ }
3006
+ }, _callee149);
3007
+ }));
3008
+ return function (_x236) {
3009
+ return _ref149.apply(this, arguments);
3010
+ };
3011
+ }());
3012
+ _defineProperty(Services, "vrcsVisibility", /*#__PURE__*/function () {
3013
+ var _ref150 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee150(data) {
3014
+ return _regeneratorRuntime.wrap(function _callee150$(_context150) {
3015
+ while (1) switch (_context150.prev = _context150.next) {
3016
+ case 0:
3017
+ return _context150.abrupt("return", api.patch("/vrcs/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
3018
+ return r.data;
3019
+ }));
3020
+ case 1:
3021
+ case "end":
3022
+ return _context150.stop();
3023
+ }
3024
+ }, _callee150);
3025
+ }));
3026
+ return function (_x237) {
3027
+ return _ref150.apply(this, arguments);
3028
+ };
3029
+ }());
3030
+ export default Services;