@banch0u/core-project-test-repository 2.2.0 → 2.2.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.
@@ -8388,4 +8388,132 @@ _defineProperty(Services, "routeLocationsVisibility", /*#__PURE__*/function () {
8388
8388
  return _ref440.apply(this, arguments);
8389
8389
  };
8390
8390
  }());
8391
+ // ---- end generated ----
8392
+ // ---- generated by questionnaireGenerator: InternalStructure ----
8393
+ _defineProperty(Services, "getInternalStructure", /*#__PURE__*/function () {
8394
+ var _ref441 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee441(size, page, query, visibility) {
8395
+ var response;
8396
+ return _regeneratorRuntime.wrap(function _callee441$(_context441) {
8397
+ while (1) switch (_context441.prev = _context441.next) {
8398
+ case 0:
8399
+ _context441.next = 2;
8400
+ return api.get("/internalstructures/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
8401
+ case 2:
8402
+ response = _context441.sent;
8403
+ return _context441.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8404
+ case 4:
8405
+ case "end":
8406
+ return _context441.stop();
8407
+ }
8408
+ }, _callee441);
8409
+ }));
8410
+ return function (_x673, _x674, _x675, _x676) {
8411
+ return _ref441.apply(this, arguments);
8412
+ };
8413
+ }());
8414
+ _defineProperty(Services, "getInternalStructureAll", /*#__PURE__*/function () {
8415
+ var _ref442 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee442(visibility) {
8416
+ var response;
8417
+ return _regeneratorRuntime.wrap(function _callee442$(_context442) {
8418
+ while (1) switch (_context442.prev = _context442.next) {
8419
+ case 0:
8420
+ _context442.next = 2;
8421
+ return api.get("/internalstructures?visibility=".concat(visibility));
8422
+ case 2:
8423
+ response = _context442.sent;
8424
+ return _context442.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8425
+ case 4:
8426
+ case "end":
8427
+ return _context442.stop();
8428
+ }
8429
+ }, _callee442);
8430
+ }));
8431
+ return function (_x677) {
8432
+ return _ref442.apply(this, arguments);
8433
+ };
8434
+ }());
8435
+ _defineProperty(Services, "addInternalStructure", /*#__PURE__*/function () {
8436
+ var _ref443 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee443(value) {
8437
+ var response;
8438
+ return _regeneratorRuntime.wrap(function _callee443$(_context443) {
8439
+ while (1) switch (_context443.prev = _context443.next) {
8440
+ case 0:
8441
+ _context443.next = 2;
8442
+ return api.post("/internalstructures", value);
8443
+ case 2:
8444
+ response = _context443.sent;
8445
+ return _context443.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8446
+ case 4:
8447
+ case "end":
8448
+ return _context443.stop();
8449
+ }
8450
+ }, _callee443);
8451
+ }));
8452
+ return function (_x678) {
8453
+ return _ref443.apply(this, arguments);
8454
+ };
8455
+ }());
8456
+ _defineProperty(Services, "editInternalStructure", /*#__PURE__*/function () {
8457
+ var _ref444 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee444(data) {
8458
+ var response;
8459
+ return _regeneratorRuntime.wrap(function _callee444$(_context444) {
8460
+ while (1) switch (_context444.prev = _context444.next) {
8461
+ case 0:
8462
+ _context444.next = 2;
8463
+ return api.put("/internalstructures/".concat(data === null || data === void 0 ? void 0 : data.id), data);
8464
+ case 2:
8465
+ response = _context444.sent;
8466
+ return _context444.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8467
+ case 4:
8468
+ case "end":
8469
+ return _context444.stop();
8470
+ }
8471
+ }, _callee444);
8472
+ }));
8473
+ return function (_x679) {
8474
+ return _ref444.apply(this, arguments);
8475
+ };
8476
+ }());
8477
+ _defineProperty(Services, "deleteInternalStructure", /*#__PURE__*/function () {
8478
+ var _ref445 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee445(id) {
8479
+ var response;
8480
+ return _regeneratorRuntime.wrap(function _callee445$(_context445) {
8481
+ while (1) switch (_context445.prev = _context445.next) {
8482
+ case 0:
8483
+ _context445.next = 2;
8484
+ return api["delete"]("/internalstructures/".concat(id));
8485
+ case 2:
8486
+ response = _context445.sent;
8487
+ return _context445.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8488
+ case 4:
8489
+ case "end":
8490
+ return _context445.stop();
8491
+ }
8492
+ }, _callee445);
8493
+ }));
8494
+ return function (_x680) {
8495
+ return _ref445.apply(this, arguments);
8496
+ };
8497
+ }());
8498
+ _defineProperty(Services, "internalStructureVisibility", /*#__PURE__*/function () {
8499
+ var _ref446 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee446(data) {
8500
+ var response;
8501
+ return _regeneratorRuntime.wrap(function _callee446$(_context446) {
8502
+ while (1) switch (_context446.prev = _context446.next) {
8503
+ case 0:
8504
+ _context446.next = 2;
8505
+ return api.patch("/internalstructures/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
8506
+ case 2:
8507
+ response = _context446.sent;
8508
+ return _context446.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8509
+ case 4:
8510
+ case "end":
8511
+ return _context446.stop();
8512
+ }
8513
+ }, _callee446);
8514
+ }));
8515
+ return function (_x681) {
8516
+ return _ref446.apply(this, arguments);
8517
+ };
8518
+ }());
8391
8519
  export default Services;
@@ -10,9 +10,9 @@ var fs = require("fs");
10
10
  var path = require("path");
11
11
 
12
12
  ////////// === CONFIG === //////////
13
- var questionnaireName = "RouteLocations"; // change as needed
14
- var constantColumnName = "Göndərilən yerlər";
15
- var endpointName = "/routelocations";
13
+ var questionnaireName = "InternalStructure"; // change as needed
14
+ var constantColumnName = "Daxili Strukturlar"; // change as needed
15
+ var endpointName = "/internalstructures";
16
16
  ///////////////////////////////////
17
17
 
18
18
  var upperName = questionnaireName.toUpperCase();
@@ -0,0 +1,364 @@
1
+ {
2
+ "az": {
3
+ "pages": {
4
+ "messages": {
5
+ "loginSuccess": "Sistemə daxil olunur...",
6
+ "loginError": "Giriş uğursuz oldu. Zəhmət olmasa məlumatlarınızı yoxlayın.",
7
+ "generalError": "Serverdə problem baş verdi",
8
+ "successValue": "Uğurla tamamlandı"
9
+ },
10
+ "common": {
11
+ "count": "Sayı",
12
+ "cancel": "Ləğv et",
13
+ "save": "Yadda saxla",
14
+ "confirm": "Təsdiqlə",
15
+ "back": "Geri"
16
+ },
17
+ "login": {
18
+ "title": "Daxil ol",
19
+ "fields": {
20
+ "username": {
21
+ "placeholder": "İstifadəçi adı"
22
+ },
23
+ "password": {
24
+ "placeholder": "Şifrə"
25
+ }
26
+ },
27
+ "buttons": {
28
+ "login": "Daxil ol"
29
+ }
30
+ },
31
+ "platform": {
32
+ "projects": {
33
+ "docflow": "Sənəd dövriyyəsi",
34
+ "hr": "Kadrlar sistemi",
35
+ "contracts": "Müqavilələr",
36
+ "accounts": "Şəxsi kabinet",
37
+ "archive": "Arxiv",
38
+ "transport": "Nəqliyyat",
39
+ "lab": "Laboratoriya",
40
+ "settings": "Tənzimləmələr"
41
+ }
42
+ },
43
+ "header": {
44
+ "logout": "Çıxış",
45
+ "notifications": {
46
+ "title": "Bildirişlər",
47
+ "readAll": "Hamısını oxu",
48
+ "nonotification": "Bildiriş yoxdur",
49
+ "read": "Oxu",
50
+ "showMore": "Daha çox göstər",
51
+ "notificationsettings": {
52
+ "title": "Bildiriş tənzimləmələri",
53
+ "internal": "Daxili",
54
+ "email": "Email",
55
+ "labels": {
56
+ "internalIsActive": "Daxili bildirişlər",
57
+ "emailIsActive": "Email bildirişləri",
58
+ "visa": "Viza üçün",
59
+ "sign": "İmza üçün",
60
+ "reject": "İmtina üçün",
61
+ "print": "Çap üçün",
62
+ "accouncement": "Elanlar",
63
+ "news": "Xəbərlər",
64
+ "reservations": "Tədbir/İclas",
65
+ "surveys": "Sorğular",
66
+ "timeOffRequest": "İcazələr",
67
+ "tutorials": "Təlimatlar və video"
68
+ }
69
+ }
70
+ },
71
+ "lightMode": "Gündüz modu",
72
+ "darkMode": "Gecə modu",
73
+ "settings": "Tənzimləmələr",
74
+ "changePassword": {
75
+ "title": "Şifrəni dəyiş",
76
+ "oldPassword": "Köhnə şifrə",
77
+ "newPassword": "Yeni şifrə",
78
+ "newPasswordConfirmation": "Yeni şifrənin təsdiqi",
79
+ "hints": {
80
+ "passwordMismatch": "Şifrələr uyğun gəlmir",
81
+ "passwordLength": "Şifrə ən azı 8 simvoldan ibarət olmalıdır",
82
+ "passwordUppercase": "Şifrə ən azı bir böyük hərf daxil etməlidir",
83
+ "passwordLowercase": "Şifrə ən azı bir kiçik hərf daxil etməlidir",
84
+ "passwordDigit": "Şifrə ən azı bir rəqəm daxil etməlidir",
85
+ "passwordSpecialChar": "Şifrə ən azı bir xüsusi simvol daxil etməlidir (!@#$%^&*)",
86
+ "passwordDifferent": "Yeni şifrə köhnə şifrə ilə eyni ola bilməz!"
87
+ }
88
+ },
89
+ "logOut": "Çıxış et"
90
+ },
91
+ "docflow": {
92
+ "unreadDocuments": {
93
+ "title": "Mənim qovluğum",
94
+ "tags": {
95
+ "forConfirmation": "Təsdiq üçün",
96
+ "forSign": "İmza üçün",
97
+ "forVisa": "Viza üçün",
98
+ "marginNoteConfirmation": "Dərkənar təsdiqi",
99
+ "marginNotePreparation": "Dərkənar hazırlanması",
100
+ "forExecution": "İcra üçün",
101
+ "forExecutionAndInfo": "İcra və məlumat üçün",
102
+ "forInfoAndSpectation": "Məlumat və Nəzarət üçün",
103
+ "forInfo": "Məlumat üçün",
104
+ "forEdit": "Redaktə üçün"
105
+ },
106
+ "table": {
107
+ "internalNumber": "Qeydiyyat nömrəsi",
108
+
109
+ "registrationDate": "Qeydiyyat tarixi",
110
+ "number": "Sənədin nömrəsi",
111
+ "directionFrom": "Kimdən daxil olub",
112
+ "fromOrganisationName": "Hardan daxil olub",
113
+ "directionTo": "Kimə ünvanlanıb",
114
+ "sendingOption": "Əməliyyat Növü",
115
+ "sendingFrom": "Əməliyyatı aparan",
116
+ "docDescription": "Qısa məzmun",
117
+ "documentStatus": "Sənədin statusu"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ },
123
+ "en": {
124
+ "pages": {
125
+ "messages": {
126
+ "loginSuccess": "Logging into the system...",
127
+ "loginError": "Login failed. Please check your credentials.",
128
+ "generalError": "Internal Server Error",
129
+ "successValue": "Completed successfully"
130
+ },
131
+
132
+ "common": {
133
+ "count": "Count",
134
+ "cancel": "Cancel",
135
+ "save": "Save",
136
+ "confirm": "Confirm",
137
+ "back": "Back"
138
+ },
139
+ "login": {
140
+ "title": "Log in",
141
+ "fields": {
142
+ "username": {
143
+ "placeholder": "Username"
144
+ },
145
+ "password": {
146
+ "placeholder": "Password"
147
+ }
148
+ },
149
+ "buttons": {
150
+ "login": "Log in"
151
+ }
152
+ },
153
+ "platform": {
154
+ "projects": {
155
+ "docflow": "Document Flow",
156
+ "hr": "HR System",
157
+ "contracts": "Contracts",
158
+ "accounts": "Personal Account",
159
+ "archive": "Archive",
160
+ "transport": "Transport",
161
+ "lab": "Laboratory",
162
+ "settings": "Settings"
163
+ }
164
+ },
165
+ "header": {
166
+ "logout": "Logout",
167
+ "notifications": {
168
+ "title": "Notifications",
169
+ "readAll": "Mark all as read",
170
+ "nonotification": "No notifications",
171
+ "read": "Read",
172
+ "showMore": "Show more",
173
+ "notificationsettings": {
174
+ "title": "Notification settings",
175
+ "internal": "Internal",
176
+ "email": "Email",
177
+ "labels": {
178
+ "internalIsActive": "Internal notifications",
179
+ "emailIsActive": "Email notifications",
180
+ "visa": "For visa",
181
+ "sign": "For signature",
182
+ "reject": "For rejection",
183
+ "print": "For printing",
184
+ "accouncement": "Announcements",
185
+ "news": "News",
186
+ "reservations": "Event/Meeting",
187
+ "surveys": "Surveys",
188
+ "timeOffRequest": "Time off requests",
189
+ "tutorials": "Guides and videos"
190
+ }
191
+ }
192
+ },
193
+ "lightMode": "Light mode",
194
+ "darkMode": "Dark mode",
195
+ "settings": "Settings",
196
+ "changePassword": {
197
+ "title": "Change password",
198
+ "oldPassword": "Old password",
199
+ "newPassword": "New password",
200
+ "newPasswordConfirmation": "Confirm new password",
201
+ "hints": {
202
+ "passwordMismatch": "Passwords do not match",
203
+ "passwordLength": "Password must be at least 8 characters long",
204
+ "passwordUppercase": "Password must contain at least one uppercase letter",
205
+ "passwordLowercase": "Password must contain at least one lowercase letter",
206
+ "passwordDigit": "Password must contain at least one digit",
207
+ "passwordSpecialChar": "Password must contain at least one special character (!@#$%^&*)",
208
+ "passwordDifferent": "The new password cannot be the same as the old password!"
209
+ }
210
+ },
211
+ "logOut": "Log out"
212
+ },
213
+ "docflow": {
214
+ "unreadDocuments": {
215
+ "title": "My folder",
216
+ "tags": {
217
+ "forConfirmation": "For confirmation",
218
+ "forSign": "For signature",
219
+ "forVisa": "For visa",
220
+ "marginNoteConfirmation": "Resolution approval",
221
+ "marginNotePreparation": "Preparation of resolution",
222
+ "forExecution": "For execution",
223
+ "forExecutionAndInfo": "For execution and information",
224
+ "forInfoAndSpectation": "For information and control",
225
+ "forInfo": "For information",
226
+ "forEdit": "For editing"
227
+ },
228
+ "table": {
229
+ "internalNumber": "Registration number",
230
+ "registrationDate": "Registration date",
231
+ "number": "Document number",
232
+ "directionFrom": "Received from",
233
+ "fromOrganisationName": "Received from (organization)",
234
+ "directionTo": "Addressed to",
235
+ "sendingOption": "Operation type",
236
+ "sendingFrom": "Processed by",
237
+ "docDescription": "Description",
238
+ "documentStatus": "Document status"
239
+ }
240
+ }
241
+ }
242
+ }
243
+ },
244
+ "ru": {
245
+ "pages": {
246
+ "messages": {
247
+ "loginSuccess": "Вход в систему...",
248
+ "loginError": "Ошибка входа. Пожалуйста, проверьте свои учетные данные.",
249
+ "generalError": "Произошла проблема на сервере",
250
+ "successValue": "Успешно завершено"
251
+ },
252
+ "common": {
253
+ "count": "Количество",
254
+ "cancel": "Отменить",
255
+ "save": "Сохранить",
256
+ "confirm": "Подтвердить",
257
+ "back": "Назад"
258
+ },
259
+ "login": {
260
+ "title": "Вход",
261
+ "fields": {
262
+ "username": {
263
+ "placeholder": "Имя пользователя"
264
+ },
265
+ "password": {
266
+ "placeholder": "Пароль"
267
+ }
268
+ },
269
+ "buttons": {
270
+ "login": "Войти"
271
+ }
272
+ },
273
+ "platform": {
274
+ "projects": {
275
+ "docflow": "Документооборот",
276
+ "hr": "Система управления персоналом",
277
+ "contracts": "Контракты",
278
+ "accounts": "Личный кабинет",
279
+ "archive": "Архив",
280
+ "transport": "Автотранспорт",
281
+ "lab": "Лаборатория",
282
+ "settings": "Настройки"
283
+ }
284
+ },
285
+ "header": {
286
+ "logout": "Выход",
287
+ "notifications": {
288
+ "title": "Уведомления",
289
+ "readAll": "Отметить все как прочитанные",
290
+ "nonotification": "Нет уведомлений",
291
+ "read": "Прочитать",
292
+ "showMore": "Показать больше",
293
+ "notificationsettings": {
294
+ "title": "Настройки уведомлений",
295
+ "internal": "Внутренние",
296
+ "email": "Email",
297
+ "labels": {
298
+ "internalIsActive": "Внутренние уведомления",
299
+ "emailIsActive": "Email-уведомления",
300
+ "visa": "Для визы",
301
+ "sign": "Для подписи",
302
+ "reject": "Для отказа",
303
+ "print": "Для печати",
304
+ "accouncement": "Объявления",
305
+ "news": "Новости",
306
+ "reservations": "Мероприятие/Совещание",
307
+ "surveys": "Опросы",
308
+ "timeOffRequest": "Отпуска",
309
+ "tutorials": "Инструкции и видео"
310
+ }
311
+ }
312
+ },
313
+ "lightMode": "Дневной режим",
314
+ "darkMode": "Ночной режим",
315
+ "settings": "Настройки",
316
+ "changePassword": {
317
+ "title": "Сменить пароль",
318
+ "oldPassword": "Старый пароль",
319
+ "newPassword": "Новый пароль",
320
+ "newPasswordConfirmation": "Подтвердить новый пароль",
321
+ "hints": {
322
+ "passwordMismatch": "Пароли не совпадают",
323
+ "passwordLength": "Пароль должен быть не менее 8 символов",
324
+ "passwordUppercase": "Пароль должен содержать хотя бы одну заглавную букву",
325
+ "passwordLowercase": "Пароль должен содержать хотя бы одну строчную букву",
326
+ "passwordDigit": "Пароль должен содержать хотя бы одну цифру",
327
+ "passwordSpecialChar": "Пароль должен содержать хотя бы один специальный символ (!@#$%^&*)",
328
+ "passwordDifferent": "Новый пароль не может совпадать со старым!"
329
+ }
330
+ },
331
+ "logOut": "Выйти"
332
+ },
333
+ "docflow": {
334
+ "unreadDocuments": {
335
+ "title": "Моя папка",
336
+ "tags": {
337
+ "forConfirmation": "Для подтверждения",
338
+ "forSign": "Для подписи",
339
+ "forVisa": "Для визы",
340
+ "marginNoteConfirmation": "Утверждение резолюции",
341
+ "marginNotePreparation": "Подготовка резолюции",
342
+ "forExecution": "Для исполнения",
343
+ "forExecutionAndInfo": "Для исполнения и сведения",
344
+ "forInfoAndSpectation": "Для сведения и контроля",
345
+ "forInfo": "Для сведения",
346
+ "forEdit": "Для редактирования"
347
+ },
348
+ "table": {
349
+ "internalNumber": "Регистрационный номер",
350
+ "registrationDate": "Дата регистрации",
351
+ "number": "Номер документа",
352
+ "directionFrom": "От кого поступило",
353
+ "fromOrganisationName": "Откуда поступило",
354
+ "directionTo": "Кому адресовано",
355
+ "sendingOption": "Тип операции",
356
+ "sendingFrom": "Кто обработал",
357
+ "docDescription": "Краткое содержание",
358
+ "documentStatus": "Статус документа"
359
+ }
360
+ }
361
+ }
362
+ }
363
+ }
364
+ }
@@ -2,6 +2,10 @@ export var LOGIN_PATH = "/login";
2
2
  export var PLATFORM_PATH = "/platform";
3
3
  export var QUESTIONNAIRES = "/questionnaires";
4
4
 
5
+ // ---- generated by questionnaireGenerator: INTERNALSTRUCTURE ----
6
+ export var QUESTIONNAIRES_INTERNALSTRUCTURE = QUESTIONNAIRES + "/internalstructures";
7
+ // ---- end generated ----
8
+
5
9
  // ---- generated by questionnaireGenerator: ROUTELOCATIONS ----
6
10
  export var QUESTIONNAIRES_ROUTELOCATIONS = QUESTIONNAIRES + "/routelocations";
7
11
  // ---- end generated ----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [