@banch0u/core-project-test-repository 1.8.4 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/antd.css +723 -0
- package/dist/assets/icons/index.js +182 -0
- package/dist/components/Button/index.module.scss +14 -2
- package/dist/components/Delete/Delete.js +22 -0
- package/dist/components/Delete/Delete.module.scss +22 -0
- package/dist/components/DeleteModal/DeleteModal.js +31 -0
- package/dist/components/DeleteModal/DeleteModal.module.scss +11 -0
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Input/index.js +1 -2
- package/dist/components/Input/index.module.scss +21 -12
- package/dist/components/ProfileOptions/index.module.scss +3 -3
- package/dist/components/Success/Success.js +19 -0
- package/dist/components/Success/Success.module.scss +26 -0
- package/dist/components/Table/index.js +4 -2
- package/dist/components/ViewModal/index.js +30 -0
- package/dist/helpers/paginationLength.js +3 -0
- package/dist/helpers/querySearch.js +22 -0
- package/dist/index.js +2 -0
- package/dist/layout/Header/AppSelect/index.js +28 -9
- package/dist/layout/Header/AppSelect/index.module.scss +6 -1
- package/dist/layout/Portal/index.js +23 -0
- package/dist/layout/QuestionnairesLayout/index.js +17 -0
- package/dist/layout/QuestionnairesLayout/index.module.scss +0 -0
- package/dist/layout/QuestionnairesSidebar/index.js +126 -0
- package/dist/layout/QuestionnairesSidebar/index.module.scss +76 -0
- package/dist/pages/Questionnnaires/Questionnaires.module.scss +194 -0
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +255 -0
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +258 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +284 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/constant.js +82 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +331 -0
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +258 -0
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +249 -0
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/constant.js +88 -0
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +320 -0
- package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesStreetsContent/index.js +240 -0
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +317 -0
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +271 -0
- package/dist/pages/Questionnnaires/index.js +5 -0
- package/dist/routes/QuestionnaireRoutes.js +108 -0
- package/dist/store/slices/global/index.js +96 -3
- package/dist/store/slices/questionnaire/index.js +2500 -0
- package/dist/store/slices/questionnaire/service.js +1557 -0
- package/dist/store/store.js +2 -1
- package/dist/utils/path.js +30 -1
- package/package.json +2 -1
|
@@ -0,0 +1,1557 @@
|
|
|
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
|
+
export default Services;
|