@hubex/mcp 0.2.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.
Files changed (92) hide show
  1. package/.env.example +54 -0
  2. package/CONNECTING.md +260 -0
  3. package/README.md +266 -0
  4. package/dist/auth.js +226 -0
  5. package/dist/config.js +120 -0
  6. package/dist/generated/manifest.js +3643 -0
  7. package/dist/guides/field-notes.json +27 -0
  8. package/dist/guides/loader.js +32 -0
  9. package/dist/guides/service-map.js +6 -0
  10. package/dist/http.js +93 -0
  11. package/dist/index/store.js +134 -0
  12. package/dist/index/types.js +1 -0
  13. package/dist/index.js +20 -0
  14. package/dist/paths.js +20 -0
  15. package/dist/pii/fields.js +100 -0
  16. package/dist/pii/mask.js +50 -0
  17. package/dist/pii/strategies.js +88 -0
  18. package/dist/schema/build-index.js +67 -0
  19. package/dist/schema/deref.js +87 -0
  20. package/dist/schema/describe.js +65 -0
  21. package/dist/server.js +62 -0
  22. package/dist/token-prompt.js +41 -0
  23. package/dist/tools/curated.js +151 -0
  24. package/dist/tools/discovery.js +187 -0
  25. package/dist/tools/guides.js +126 -0
  26. package/dist/tools/registry.js +37 -0
  27. package/dist/tools/request.js +170 -0
  28. package/dist/tools/types.js +1 -0
  29. package/docs/guides/assets.md +334 -0
  30. package/docs/guides/attributes.md +125 -0
  31. package/docs/guides/checklisttemplates.md +154 -0
  32. package/docs/guides/companies.md +57 -0
  33. package/docs/guides/dictionaries.md +64 -0
  34. package/docs/guides/lifecycle.md +263 -0
  35. package/docs/guides/materials.md +135 -0
  36. package/docs/guides/notifications.md +184 -0
  37. package/docs/guides/roles.md +125 -0
  38. package/docs/guides/sla.md +130 -0
  39. package/docs/guides/start.md +67 -0
  40. package/docs/guides/taskchecklists.md +149 -0
  41. package/docs/guides/taskcreate.md +260 -0
  42. package/docs/guides/taskedit.md +277 -0
  43. package/docs/guides/tasktypes.md +156 -0
  44. package/docs/guides/users.md +71 -0
  45. package/generated/index.dev.json +18776 -0
  46. package/generated/index.prod.json +18858 -0
  47. package/package.json +48 -0
  48. package/swagger/dev/ADM.json +27777 -0
  49. package/swagger/dev/AUTH.json +1739 -0
  50. package/swagger/dev/AUTHN.json +1250 -0
  51. package/swagger/dev/AUTHZ.json +1404 -0
  52. package/swagger/dev/CM.json +309 -0
  53. package/swagger/dev/COMMON.json +6543 -0
  54. package/swagger/dev/ES.json +28029 -0
  55. package/swagger/dev/EXPORT.json +4575 -0
  56. package/swagger/dev/IMPORT.json +1479 -0
  57. package/swagger/dev/LIC.json +224 -0
  58. package/swagger/dev/MSG.json +7883 -0
  59. package/swagger/dev/NEWS.json +348 -0
  60. package/swagger/dev/PA.json +5981 -0
  61. package/swagger/dev/PMP.json +3196 -0
  62. package/swagger/dev/PROXY.json +416 -0
  63. package/swagger/dev/REPORT.json +3921 -0
  64. package/swagger/dev/SC.json +3771 -0
  65. package/swagger/dev/SLA.json +2837 -0
  66. package/swagger/dev/TSTG.json +4981 -0
  67. package/swagger/dev/UI.json +4720 -0
  68. package/swagger/dev/WH.json +16796 -0
  69. package/swagger/dev/WORK.json +36024 -0
  70. package/swagger/dev/WSP.json +1612 -0
  71. package/swagger/prod/ADM.json +27777 -0
  72. package/swagger/prod/AUTH.json +1308 -0
  73. package/swagger/prod/AUTHN.json +2710 -0
  74. package/swagger/prod/AUTHZ.json +896 -0
  75. package/swagger/prod/CM.json +162 -0
  76. package/swagger/prod/COMMON.json +4910 -0
  77. package/swagger/prod/ES.json +28029 -0
  78. package/swagger/prod/EXPORT.json +3091 -0
  79. package/swagger/prod/LIC.json +123 -0
  80. package/swagger/prod/MSG.json +6239 -0
  81. package/swagger/prod/NEWS.json +295 -0
  82. package/swagger/prod/PA.json +5123 -0
  83. package/swagger/prod/PMP.json +2978 -0
  84. package/swagger/prod/PROXY.json +250 -0
  85. package/swagger/prod/REPORT.json +3729 -0
  86. package/swagger/prod/SC.json +3771 -0
  87. package/swagger/prod/SLA.json +2201 -0
  88. package/swagger/prod/TSTG.json +4220 -0
  89. package/swagger/prod/UI.json +3879 -0
  90. package/swagger/prod/WH.json +16730 -0
  91. package/swagger/prod/WORK.json +35994 -0
  92. package/swagger/prod/WSP.json +1468 -0
@@ -0,0 +1,2837 @@
1
+ {
2
+ "openapi": "3.0.1",
3
+ "info": {
4
+ "title": "API for SLA in HubEx",
5
+ "description": "Service offers application programming interface for manipulation service level agreement and all connected entities.",
6
+ "contact": {
7
+ "name": "SmartService Backend Team",
8
+ "email": "fmbackend@melston.ru"
9
+ },
10
+ "version": "v1.0.0.0"
11
+ },
12
+ "servers": [
13
+ {
14
+ "url": "/SLA"
15
+ }
16
+ ],
17
+ "paths": {
18
+ "/Attributes": {
19
+ "get": {
20
+ "tags": [
21
+ "Attributes"
22
+ ],
23
+ "summary": "Получение списка атрибутов SLA",
24
+ "description": "## Пример запроса:\r\n`GET /Attributes`\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"1\": {\r\n \"name\": \"Тип заявки\"\r\n },\r\n \"2\": {\r\n \"name\": \"Регион\"\r\n }\r\n}\r\n```\r\n## Негативные сценарии:\r\n- 204 NoContent: атрибуты не найдены.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `AttributeSLAList`.",
25
+ "parameters": [
26
+ {
27
+ "name": "X-Application-ID",
28
+ "in": "header",
29
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
30
+ "schema": {
31
+ "enum": [
32
+ 1,
33
+ 2,
34
+ 3,
35
+ 4,
36
+ 5,
37
+ 6
38
+ ],
39
+ "type": "integer",
40
+ "format": "int32",
41
+ "default": 3,
42
+ "x-enumNames": [
43
+ "EngineerMobile",
44
+ "CustomerMobile",
45
+ "MainWeb",
46
+ "AdminWeb",
47
+ "Api",
48
+ "PlateWeb"
49
+ ]
50
+ }
51
+ }
52
+ ],
53
+ "responses": {
54
+ "200": {
55
+ "description": "Список атрибутов SLA.",
56
+ "content": {
57
+ "text/plain": {
58
+ "schema": {
59
+ "type": "object",
60
+ "additionalProperties": {
61
+ "$ref": "#/components/schemas/ResultsAttributesListResult"
62
+ }
63
+ }
64
+ },
65
+ "application/json": {
66
+ "schema": {
67
+ "type": "object",
68
+ "additionalProperties": {
69
+ "$ref": "#/components/schemas/ResultsAttributesListResult"
70
+ }
71
+ }
72
+ },
73
+ "text/json": {
74
+ "schema": {
75
+ "type": "object",
76
+ "additionalProperties": {
77
+ "$ref": "#/components/schemas/ResultsAttributesListResult"
78
+ }
79
+ }
80
+ }
81
+ }
82
+ },
83
+ "204": {
84
+ "description": "Атрибуты не найдены."
85
+ },
86
+ "401": {
87
+ "description": "Отсутствует или некорректен Bearer-токен."
88
+ },
89
+ "403": {
90
+ "description": "Недостаточно прав для просмотра списка атрибутов SLA."
91
+ }
92
+ },
93
+ "security": [
94
+ {
95
+ "Bearer": [ ]
96
+ }
97
+ ]
98
+ }
99
+ },
100
+ "/Criticalities": {
101
+ "post": {
102
+ "tags": [
103
+ "Criticalities"
104
+ ],
105
+ "summary": "Создание критичностей",
106
+ "description": "## Пример запроса:\r\n```json\r\n[\r\n {\r\n \"name\": \"Высокая\",\r\n \"color\": \"#FF0000\",\r\n \"isDefault\": false,\r\n \"sortOrder\": 1,\r\n \"erpID\": \"ERP-CRIT-001\"\r\n }\r\n]\r\n```\r\n## Пример успешного ответа (201):\r\n```json\r\n[1, 2]\r\n```\r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `CriticalityAdd`.",
107
+ "parameters": [
108
+ {
109
+ "name": "X-Application-ID",
110
+ "in": "header",
111
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
112
+ "schema": {
113
+ "enum": [
114
+ 1,
115
+ 2,
116
+ 3,
117
+ 4,
118
+ 5,
119
+ 6
120
+ ],
121
+ "type": "integer",
122
+ "format": "int32",
123
+ "default": 3,
124
+ "x-enumNames": [
125
+ "EngineerMobile",
126
+ "CustomerMobile",
127
+ "MainWeb",
128
+ "AdminWeb",
129
+ "Api",
130
+ "PlateWeb"
131
+ ]
132
+ }
133
+ }
134
+ ],
135
+ "requestBody": {
136
+ "description": "Коллекция данных для создания критичностей.",
137
+ "content": {
138
+ "application/json-patch+json": {
139
+ "schema": {
140
+ "type": "array",
141
+ "items": {
142
+ "$ref": "#/components/schemas/SLACriticalityAddData"
143
+ }
144
+ }
145
+ },
146
+ "application/json": {
147
+ "schema": {
148
+ "type": "array",
149
+ "items": {
150
+ "$ref": "#/components/schemas/SLACriticalityAddData"
151
+ }
152
+ }
153
+ },
154
+ "text/json": {
155
+ "schema": {
156
+ "type": "array",
157
+ "items": {
158
+ "$ref": "#/components/schemas/SLACriticalityAddData"
159
+ }
160
+ }
161
+ },
162
+ "application/*+json": {
163
+ "schema": {
164
+ "type": "array",
165
+ "items": {
166
+ "$ref": "#/components/schemas/SLACriticalityAddData"
167
+ }
168
+ }
169
+ }
170
+ }
171
+ },
172
+ "responses": {
173
+ "201": {
174
+ "description": "Критичности успешно созданы.",
175
+ "content": {
176
+ "text/plain": {
177
+ "schema": {
178
+ "type": "array",
179
+ "items": {
180
+ "type": "integer",
181
+ "format": "int32"
182
+ }
183
+ }
184
+ },
185
+ "application/json": {
186
+ "schema": {
187
+ "type": "array",
188
+ "items": {
189
+ "type": "integer",
190
+ "format": "int32"
191
+ }
192
+ }
193
+ },
194
+ "text/json": {
195
+ "schema": {
196
+ "type": "array",
197
+ "items": {
198
+ "type": "integer",
199
+ "format": "int32"
200
+ }
201
+ }
202
+ }
203
+ }
204
+ },
205
+ "401": {
206
+ "description": "Отсутствует или некорректен Bearer-токен."
207
+ },
208
+ "403": {
209
+ "description": "Недостаточно прав для создания критичностей."
210
+ }
211
+ },
212
+ "security": [
213
+ {
214
+ "Bearer": [ ]
215
+ }
216
+ ]
217
+ },
218
+ "put": {
219
+ "tags": [
220
+ "Criticalities"
221
+ ],
222
+ "summary": "Изменение критичностей",
223
+ "description": "## Пример запроса:\r\n```json\r\n[\r\n {\r\n \"id\": 1,\r\n \"name\": \"Высокая\",\r\n \"color\": \"#FF0000\",\r\n \"isDefault\": false,\r\n \"sortOrder\": 1,\r\n \"erpID\": \"ERP-CRIT-001\"\r\n }\r\n]\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `CriticalityUpdate`.",
224
+ "parameters": [
225
+ {
226
+ "name": "X-Application-ID",
227
+ "in": "header",
228
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
229
+ "schema": {
230
+ "enum": [
231
+ 1,
232
+ 2,
233
+ 3,
234
+ 4,
235
+ 5,
236
+ 6
237
+ ],
238
+ "type": "integer",
239
+ "format": "int32",
240
+ "default": 3,
241
+ "x-enumNames": [
242
+ "EngineerMobile",
243
+ "CustomerMobile",
244
+ "MainWeb",
245
+ "AdminWeb",
246
+ "Api",
247
+ "PlateWeb"
248
+ ]
249
+ }
250
+ }
251
+ ],
252
+ "requestBody": {
253
+ "description": "Коллекция данных для изменения критичностей.",
254
+ "content": {
255
+ "application/json-patch+json": {
256
+ "schema": {
257
+ "type": "array",
258
+ "items": {
259
+ "$ref": "#/components/schemas/SLACriticalityUpdateData"
260
+ }
261
+ }
262
+ },
263
+ "application/json": {
264
+ "schema": {
265
+ "type": "array",
266
+ "items": {
267
+ "$ref": "#/components/schemas/SLACriticalityUpdateData"
268
+ }
269
+ }
270
+ },
271
+ "text/json": {
272
+ "schema": {
273
+ "type": "array",
274
+ "items": {
275
+ "$ref": "#/components/schemas/SLACriticalityUpdateData"
276
+ }
277
+ }
278
+ },
279
+ "application/*+json": {
280
+ "schema": {
281
+ "type": "array",
282
+ "items": {
283
+ "$ref": "#/components/schemas/SLACriticalityUpdateData"
284
+ }
285
+ }
286
+ }
287
+ }
288
+ },
289
+ "responses": {
290
+ "202": {
291
+ "description": "Изменения приняты в обработку."
292
+ },
293
+ "401": {
294
+ "description": "Отсутствует или некорректен Bearer-токен."
295
+ },
296
+ "403": {
297
+ "description": "Недостаточно прав для изменения критичностей."
298
+ }
299
+ },
300
+ "security": [
301
+ {
302
+ "Bearer": [ ]
303
+ }
304
+ ]
305
+ },
306
+ "delete": {
307
+ "tags": [
308
+ "Criticalities"
309
+ ],
310
+ "summary": "Удаление критичностей",
311
+ "description": "## Пример запроса:\r\n```json\r\n[1, 2]\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `CriticalityDelete`.",
312
+ "parameters": [
313
+ {
314
+ "name": "X-Application-ID",
315
+ "in": "header",
316
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
317
+ "schema": {
318
+ "enum": [
319
+ 1,
320
+ 2,
321
+ 3,
322
+ 4,
323
+ 5,
324
+ 6
325
+ ],
326
+ "type": "integer",
327
+ "format": "int32",
328
+ "default": 3,
329
+ "x-enumNames": [
330
+ "EngineerMobile",
331
+ "CustomerMobile",
332
+ "MainWeb",
333
+ "AdminWeb",
334
+ "Api",
335
+ "PlateWeb"
336
+ ]
337
+ }
338
+ }
339
+ ],
340
+ "requestBody": {
341
+ "description": "Список идентификаторов удаляемых критичностей.",
342
+ "content": {
343
+ "application/json-patch+json": {
344
+ "schema": {
345
+ "type": "array",
346
+ "items": {
347
+ "type": "integer",
348
+ "format": "int32"
349
+ }
350
+ }
351
+ },
352
+ "application/json": {
353
+ "schema": {
354
+ "type": "array",
355
+ "items": {
356
+ "type": "integer",
357
+ "format": "int32"
358
+ }
359
+ }
360
+ },
361
+ "text/json": {
362
+ "schema": {
363
+ "type": "array",
364
+ "items": {
365
+ "type": "integer",
366
+ "format": "int32"
367
+ }
368
+ }
369
+ },
370
+ "application/*+json": {
371
+ "schema": {
372
+ "type": "array",
373
+ "items": {
374
+ "type": "integer",
375
+ "format": "int32"
376
+ }
377
+ }
378
+ }
379
+ }
380
+ },
381
+ "responses": {
382
+ "202": {
383
+ "description": "Удаление принято в обработку."
384
+ },
385
+ "401": {
386
+ "description": "Отсутствует или некорректен Bearer-токен."
387
+ },
388
+ "403": {
389
+ "description": "Недостаточно прав для удаления критичностей."
390
+ }
391
+ },
392
+ "security": [
393
+ {
394
+ "Bearer": [ ]
395
+ }
396
+ ]
397
+ },
398
+ "get": {
399
+ "tags": [
400
+ "Criticalities"
401
+ ],
402
+ "summary": "Получение списка критичностей",
403
+ "description": "## Пример запроса:\r\n`GET /Criticalities?contractID=10&workTypeID=5`\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"1\": {\r\n \"name\": \"Высокая\",\r\n \"color\": \"#FF0000\",\r\n \"isDefault\": false,\r\n \"sortOrder\": 1,\r\n \"erpID\": \"ERP-CRIT-001\"\r\n }\r\n}\r\n```\r\n## Негативные сценарии:\r\n- 204 NoContent: критичности не найдены.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `CriticalitiesList`.\r\n- 500 InternalServerError: внутренняя ошибка сервера.",
404
+ "parameters": [
405
+ {
406
+ "name": "contractID",
407
+ "in": "query",
408
+ "description": "Идентификаторы договоров для фильтрации.",
409
+ "schema": {
410
+ "type": "array",
411
+ "items": {
412
+ "type": "integer",
413
+ "format": "int32"
414
+ }
415
+ }
416
+ },
417
+ {
418
+ "name": "workTypeID",
419
+ "in": "query",
420
+ "description": "Идентификаторы видов работ для фильтрации.",
421
+ "schema": {
422
+ "type": "array",
423
+ "items": {
424
+ "type": "integer",
425
+ "format": "int32"
426
+ }
427
+ }
428
+ },
429
+ {
430
+ "name": "contractID",
431
+ "in": "query",
432
+ "description": "Идентификаторы договоров для фильтрации",
433
+ "schema": {
434
+ "type": "integer",
435
+ "format": "int32"
436
+ }
437
+ },
438
+ {
439
+ "name": "workTypeID",
440
+ "in": "query",
441
+ "description": "Идентификаторы видов работ для фильтрации",
442
+ "schema": {
443
+ "type": "integer",
444
+ "format": "int32"
445
+ }
446
+ },
447
+ {
448
+ "name": "X-Application-ID",
449
+ "in": "header",
450
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
451
+ "schema": {
452
+ "enum": [
453
+ 1,
454
+ 2,
455
+ 3,
456
+ 4,
457
+ 5,
458
+ 6
459
+ ],
460
+ "type": "integer",
461
+ "format": "int32",
462
+ "default": 3,
463
+ "x-enumNames": [
464
+ "EngineerMobile",
465
+ "CustomerMobile",
466
+ "MainWeb",
467
+ "AdminWeb",
468
+ "Api",
469
+ "PlateWeb"
470
+ ]
471
+ }
472
+ }
473
+ ],
474
+ "responses": {
475
+ "200": {
476
+ "description": "Список критичностей.",
477
+ "content": {
478
+ "text/plain": {
479
+ "schema": {
480
+ "type": "object",
481
+ "additionalProperties": {
482
+ "$ref": "#/components/schemas/ResultsCriticalitiesGetResult"
483
+ }
484
+ }
485
+ },
486
+ "application/json": {
487
+ "schema": {
488
+ "type": "object",
489
+ "additionalProperties": {
490
+ "$ref": "#/components/schemas/ResultsCriticalitiesGetResult"
491
+ }
492
+ }
493
+ },
494
+ "text/json": {
495
+ "schema": {
496
+ "type": "object",
497
+ "additionalProperties": {
498
+ "$ref": "#/components/schemas/ResultsCriticalitiesGetResult"
499
+ }
500
+ }
501
+ }
502
+ }
503
+ },
504
+ "204": {
505
+ "description": "Критичности не найдены."
506
+ },
507
+ "401": {
508
+ "description": "Отсутствует или некорректен Bearer-токен."
509
+ },
510
+ "403": {
511
+ "description": "Недостаточно прав для просмотра списка критичностей."
512
+ },
513
+ "500": {
514
+ "description": "Внутренняя ошибка сервера.",
515
+ "content": {
516
+ "text/plain": {
517
+ "schema": {
518
+ "type": "array",
519
+ "items": {
520
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
521
+ }
522
+ }
523
+ },
524
+ "application/json": {
525
+ "schema": {
526
+ "type": "array",
527
+ "items": {
528
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
529
+ }
530
+ }
531
+ },
532
+ "text/json": {
533
+ "schema": {
534
+ "type": "array",
535
+ "items": {
536
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
537
+ }
538
+ }
539
+ }
540
+ }
541
+ }
542
+ },
543
+ "security": [
544
+ {
545
+ "Bearer": [ ]
546
+ }
547
+ ]
548
+ }
549
+ },
550
+ "/Criticalities/{id}": {
551
+ "delete": {
552
+ "tags": [
553
+ "Criticalities"
554
+ ],
555
+ "summary": "Удаление критичности",
556
+ "description": "## Пример запроса:\r\n`DELETE /Criticalities/1`\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 409 Conflict: критичность не может быть удалена из-за связанных данных.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `CriticalityDelete`.",
557
+ "parameters": [
558
+ {
559
+ "name": "id",
560
+ "in": "path",
561
+ "description": "Идентификатор критичности.",
562
+ "required": true,
563
+ "schema": {
564
+ "type": "integer",
565
+ "format": "int32"
566
+ }
567
+ },
568
+ {
569
+ "name": "X-Application-ID",
570
+ "in": "header",
571
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
572
+ "schema": {
573
+ "enum": [
574
+ 1,
575
+ 2,
576
+ 3,
577
+ 4,
578
+ 5,
579
+ 6
580
+ ],
581
+ "type": "integer",
582
+ "format": "int32",
583
+ "default": 3,
584
+ "x-enumNames": [
585
+ "EngineerMobile",
586
+ "CustomerMobile",
587
+ "MainWeb",
588
+ "AdminWeb",
589
+ "Api",
590
+ "PlateWeb"
591
+ ]
592
+ }
593
+ }
594
+ ],
595
+ "responses": {
596
+ "202": {
597
+ "description": "Удаление принято в обработку."
598
+ },
599
+ "401": {
600
+ "description": "Отсутствует или некорректен Bearer-токен."
601
+ },
602
+ "403": {
603
+ "description": "Недостаточно прав для удаления критичности."
604
+ },
605
+ "409": {
606
+ "description": "Ошибка удаления. Тело ошибки: System.Collections.Generic.List`1.",
607
+ "content": {
608
+ "text/plain": {
609
+ "schema": {
610
+ "type": "array",
611
+ "items": {
612
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
613
+ }
614
+ }
615
+ },
616
+ "application/json": {
617
+ "schema": {
618
+ "type": "array",
619
+ "items": {
620
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
621
+ }
622
+ }
623
+ },
624
+ "text/json": {
625
+ "schema": {
626
+ "type": "array",
627
+ "items": {
628
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
629
+ }
630
+ }
631
+ }
632
+ }
633
+ }
634
+ },
635
+ "security": [
636
+ {
637
+ "Bearer": [ ]
638
+ }
639
+ ]
640
+ },
641
+ "get": {
642
+ "tags": [
643
+ "Criticalities"
644
+ ],
645
+ "summary": "Получение критичности",
646
+ "description": "## Пример запроса:\r\n`GET /Criticalities/1`\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"name\": \"Высокая\",\r\n \"color\": \"#FF0000\",\r\n \"isDefault\": false,\r\n \"sortOrder\": 1,\r\n \"erpID\": \"ERP-CRIT-001\"\r\n}\r\n```\r\n## Негативные сценарии:\r\n- 204 NoContent: критичность с указанным `id` не найдена.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `CriticalityGet`.",
647
+ "parameters": [
648
+ {
649
+ "name": "id",
650
+ "in": "path",
651
+ "description": "Идентификатор критичности.",
652
+ "required": true,
653
+ "schema": {
654
+ "type": "integer",
655
+ "format": "int32"
656
+ }
657
+ },
658
+ {
659
+ "name": "X-Application-ID",
660
+ "in": "header",
661
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
662
+ "schema": {
663
+ "enum": [
664
+ 1,
665
+ 2,
666
+ 3,
667
+ 4,
668
+ 5,
669
+ 6
670
+ ],
671
+ "type": "integer",
672
+ "format": "int32",
673
+ "default": 3,
674
+ "x-enumNames": [
675
+ "EngineerMobile",
676
+ "CustomerMobile",
677
+ "MainWeb",
678
+ "AdminWeb",
679
+ "Api",
680
+ "PlateWeb"
681
+ ]
682
+ }
683
+ }
684
+ ],
685
+ "responses": {
686
+ "200": {
687
+ "description": "Детальная информация о критичности.",
688
+ "content": {
689
+ "text/plain": {
690
+ "schema": {
691
+ "$ref": "#/components/schemas/ResultsCriticalitiesGetResult"
692
+ }
693
+ },
694
+ "application/json": {
695
+ "schema": {
696
+ "$ref": "#/components/schemas/ResultsCriticalitiesGetResult"
697
+ }
698
+ },
699
+ "text/json": {
700
+ "schema": {
701
+ "$ref": "#/components/schemas/ResultsCriticalitiesGetResult"
702
+ }
703
+ }
704
+ }
705
+ },
706
+ "204": {
707
+ "description": "Критичность с указанным идентификатором не найдена."
708
+ },
709
+ "401": {
710
+ "description": "Отсутствует или некорректен Bearer-токен."
711
+ },
712
+ "403": {
713
+ "description": "Недостаточно прав для чтения критичности."
714
+ }
715
+ },
716
+ "security": [
717
+ {
718
+ "Bearer": [ ]
719
+ }
720
+ ]
721
+ }
722
+ },
723
+ "/DeadlineRules/{deadlineRuleID}/attributes": {
724
+ "get": {
725
+ "tags": [
726
+ "DeadlineRules"
727
+ ],
728
+ "summary": "Получение атрибутов правила планового закрытия заявки",
729
+ "description": "## Пример запроса:\r\n`GET /DeadlineRules/101/attributes`\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"3\": [10, 20],\r\n \"5\": [15]\r\n}\r\n```\r\n## Негативные сценарии:\r\n- 204 NoContent: атрибуты для указанного правила не найдены.\r\n- 400 BadRequest: некорректный идентификатор правила.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleAttributeList`.",
730
+ "parameters": [
731
+ {
732
+ "name": "deadlineRuleID",
733
+ "in": "path",
734
+ "description": "Идентификатор правила планового закрытия заявки.",
735
+ "required": true,
736
+ "schema": {
737
+ "type": "integer",
738
+ "format": "int32"
739
+ }
740
+ },
741
+ {
742
+ "name": "X-Application-ID",
743
+ "in": "header",
744
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
745
+ "schema": {
746
+ "enum": [
747
+ 1,
748
+ 2,
749
+ 3,
750
+ 4,
751
+ 5,
752
+ 6
753
+ ],
754
+ "type": "integer",
755
+ "format": "int32",
756
+ "default": 3,
757
+ "x-enumNames": [
758
+ "EngineerMobile",
759
+ "CustomerMobile",
760
+ "MainWeb",
761
+ "AdminWeb",
762
+ "Api",
763
+ "PlateWeb"
764
+ ]
765
+ }
766
+ }
767
+ ],
768
+ "responses": {
769
+ "200": {
770
+ "description": "Список атрибутов правила.",
771
+ "content": {
772
+ "text/plain": {
773
+ "schema": {
774
+ "type": "object",
775
+ "additionalProperties": {
776
+ "type": "array",
777
+ "items": {
778
+ "type": "integer",
779
+ "format": "int32"
780
+ }
781
+ }
782
+ }
783
+ },
784
+ "application/json": {
785
+ "schema": {
786
+ "type": "object",
787
+ "additionalProperties": {
788
+ "type": "array",
789
+ "items": {
790
+ "type": "integer",
791
+ "format": "int32"
792
+ }
793
+ }
794
+ }
795
+ },
796
+ "text/json": {
797
+ "schema": {
798
+ "type": "object",
799
+ "additionalProperties": {
800
+ "type": "array",
801
+ "items": {
802
+ "type": "integer",
803
+ "format": "int32"
804
+ }
805
+ }
806
+ }
807
+ }
808
+ }
809
+ },
810
+ "204": {
811
+ "description": "Атрибуты не найдены."
812
+ },
813
+ "400": {
814
+ "description": "Некорректный идентификатор правила.",
815
+ "content": {
816
+ "text/plain": {
817
+ "schema": {
818
+ "type": "array",
819
+ "items": {
820
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
821
+ }
822
+ }
823
+ },
824
+ "application/json": {
825
+ "schema": {
826
+ "type": "array",
827
+ "items": {
828
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
829
+ }
830
+ }
831
+ },
832
+ "text/json": {
833
+ "schema": {
834
+ "type": "array",
835
+ "items": {
836
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
837
+ }
838
+ }
839
+ }
840
+ }
841
+ },
842
+ "401": {
843
+ "description": "Отсутствует или некорректен Bearer-токен."
844
+ },
845
+ "403": {
846
+ "description": "Недостаточно прав для просмотра атрибутов правила."
847
+ }
848
+ },
849
+ "security": [
850
+ {
851
+ "Bearer": [ ]
852
+ }
853
+ ]
854
+ }
855
+ },
856
+ "/DeadlineRules/attributes": {
857
+ "post": {
858
+ "tags": [
859
+ "DeadlineRules"
860
+ ],
861
+ "summary": "Добавление атрибутов к правилам планового закрытия заявки",
862
+ "description": "## Пример запроса:\r\n```json\r\n[\r\n {\r\n \"deadlineRuleID\": 101,\r\n \"data\": [\r\n {\r\n \"attributeID\": 3,\r\n \"attrNumbValue\": 10\r\n }\r\n ]\r\n }\r\n]\r\n```\r\n## Пример успешного ответа (201):\r\n```json\r\n[\r\n {\r\n \"deadlineRuleID\": 101,\r\n \"attributeID\": 3,\r\n \"attrNumbValue\": 10\r\n }\r\n]\r\n```\r\n## Негативные сценарии:\r\n- 204 NoContent: атрибуты не были добавлены.\r\n- 409 Conflict: ошибка валидации или конфликт данных.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleAttributeAdd`.",
863
+ "parameters": [
864
+ {
865
+ "name": "X-Application-ID",
866
+ "in": "header",
867
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
868
+ "schema": {
869
+ "enum": [
870
+ 1,
871
+ 2,
872
+ 3,
873
+ 4,
874
+ 5,
875
+ 6
876
+ ],
877
+ "type": "integer",
878
+ "format": "int32",
879
+ "default": 3,
880
+ "x-enumNames": [
881
+ "EngineerMobile",
882
+ "CustomerMobile",
883
+ "MainWeb",
884
+ "AdminWeb",
885
+ "Api",
886
+ "PlateWeb"
887
+ ]
888
+ }
889
+ }
890
+ ],
891
+ "requestBody": {
892
+ "description": "Коллекция данных для добавления атрибутов.",
893
+ "content": {
894
+ "application/json-patch+json": {
895
+ "schema": {
896
+ "type": "array",
897
+ "items": {
898
+ "$ref": "#/components/schemas/DeadlineRuleActionDataOfDeadlineRuleAttributeData"
899
+ }
900
+ }
901
+ },
902
+ "application/json": {
903
+ "schema": {
904
+ "type": "array",
905
+ "items": {
906
+ "$ref": "#/components/schemas/DeadlineRuleActionDataOfDeadlineRuleAttributeData"
907
+ }
908
+ }
909
+ },
910
+ "text/json": {
911
+ "schema": {
912
+ "type": "array",
913
+ "items": {
914
+ "$ref": "#/components/schemas/DeadlineRuleActionDataOfDeadlineRuleAttributeData"
915
+ }
916
+ }
917
+ },
918
+ "application/*+json": {
919
+ "schema": {
920
+ "type": "array",
921
+ "items": {
922
+ "$ref": "#/components/schemas/DeadlineRuleActionDataOfDeadlineRuleAttributeData"
923
+ }
924
+ }
925
+ }
926
+ }
927
+ },
928
+ "responses": {
929
+ "201": {
930
+ "description": "Атрибуты успешно добавлены.",
931
+ "content": {
932
+ "text/plain": {
933
+ "schema": {
934
+ "type": "array",
935
+ "items": {
936
+ "$ref": "#/components/schemas/ResultsDeadlineRuleAttributesDeadlineRuleAttributeResult"
937
+ }
938
+ }
939
+ },
940
+ "application/json": {
941
+ "schema": {
942
+ "type": "array",
943
+ "items": {
944
+ "$ref": "#/components/schemas/ResultsDeadlineRuleAttributesDeadlineRuleAttributeResult"
945
+ }
946
+ }
947
+ },
948
+ "text/json": {
949
+ "schema": {
950
+ "type": "array",
951
+ "items": {
952
+ "$ref": "#/components/schemas/ResultsDeadlineRuleAttributesDeadlineRuleAttributeResult"
953
+ }
954
+ }
955
+ }
956
+ }
957
+ },
958
+ "204": {
959
+ "description": "Атрибуты не были добавлены."
960
+ },
961
+ "401": {
962
+ "description": "Отсутствует или некорректен Bearer-токен."
963
+ },
964
+ "403": {
965
+ "description": "Недостаточно прав для добавления атрибутов."
966
+ },
967
+ "409": {
968
+ "description": "Ошибка валидации или конфликт данных. Тело ошибки: System.Collections.Generic.List`1.",
969
+ "content": {
970
+ "text/plain": {
971
+ "schema": {
972
+ "type": "array",
973
+ "items": {
974
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
975
+ }
976
+ }
977
+ },
978
+ "application/json": {
979
+ "schema": {
980
+ "type": "array",
981
+ "items": {
982
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
983
+ }
984
+ }
985
+ },
986
+ "text/json": {
987
+ "schema": {
988
+ "type": "array",
989
+ "items": {
990
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
991
+ }
992
+ }
993
+ }
994
+ }
995
+ }
996
+ },
997
+ "security": [
998
+ {
999
+ "Bearer": [ ]
1000
+ }
1001
+ ]
1002
+ },
1003
+ "delete": {
1004
+ "tags": [
1005
+ "DeadlineRules"
1006
+ ],
1007
+ "summary": "Удаление атрибутов у правил планового закрытия заявки",
1008
+ "description": "## Пример запроса:\r\n```json\r\n[\r\n {\r\n \"deadlineRuleID\": 101,\r\n \"data\": [\r\n {\r\n \"attributeID\": 3,\r\n \"attrNumbValue\": 10\r\n }\r\n ]\r\n }\r\n]\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 409 Conflict: ошибка валидации или конфликт данных.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleAttributeDelete`.",
1009
+ "parameters": [
1010
+ {
1011
+ "name": "X-Application-ID",
1012
+ "in": "header",
1013
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1014
+ "schema": {
1015
+ "enum": [
1016
+ 1,
1017
+ 2,
1018
+ 3,
1019
+ 4,
1020
+ 5,
1021
+ 6
1022
+ ],
1023
+ "type": "integer",
1024
+ "format": "int32",
1025
+ "default": 3,
1026
+ "x-enumNames": [
1027
+ "EngineerMobile",
1028
+ "CustomerMobile",
1029
+ "MainWeb",
1030
+ "AdminWeb",
1031
+ "Api",
1032
+ "PlateWeb"
1033
+ ]
1034
+ }
1035
+ }
1036
+ ],
1037
+ "requestBody": {
1038
+ "description": "Коллекция данных для удаления атрибутов.",
1039
+ "content": {
1040
+ "application/json-patch+json": {
1041
+ "schema": {
1042
+ "type": "array",
1043
+ "items": {
1044
+ "$ref": "#/components/schemas/DeadlineRuleActionDataOfDeadlineRuleAttributeData"
1045
+ }
1046
+ }
1047
+ },
1048
+ "application/json": {
1049
+ "schema": {
1050
+ "type": "array",
1051
+ "items": {
1052
+ "$ref": "#/components/schemas/DeadlineRuleActionDataOfDeadlineRuleAttributeData"
1053
+ }
1054
+ }
1055
+ },
1056
+ "text/json": {
1057
+ "schema": {
1058
+ "type": "array",
1059
+ "items": {
1060
+ "$ref": "#/components/schemas/DeadlineRuleActionDataOfDeadlineRuleAttributeData"
1061
+ }
1062
+ }
1063
+ },
1064
+ "application/*+json": {
1065
+ "schema": {
1066
+ "type": "array",
1067
+ "items": {
1068
+ "$ref": "#/components/schemas/DeadlineRuleActionDataOfDeadlineRuleAttributeData"
1069
+ }
1070
+ }
1071
+ }
1072
+ }
1073
+ },
1074
+ "responses": {
1075
+ "202": {
1076
+ "description": "Удаление принято в обработку."
1077
+ },
1078
+ "401": {
1079
+ "description": "Отсутствует или некорректен Bearer-токен."
1080
+ },
1081
+ "403": {
1082
+ "description": "Недостаточно прав для удаления атрибутов."
1083
+ },
1084
+ "409": {
1085
+ "description": "Ошибка валидации или конфликт данных. Тело ошибки: System.Collections.Generic.List`1.",
1086
+ "content": {
1087
+ "text/plain": {
1088
+ "schema": {
1089
+ "type": "array",
1090
+ "items": {
1091
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1092
+ }
1093
+ }
1094
+ },
1095
+ "application/json": {
1096
+ "schema": {
1097
+ "type": "array",
1098
+ "items": {
1099
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1100
+ }
1101
+ }
1102
+ },
1103
+ "text/json": {
1104
+ "schema": {
1105
+ "type": "array",
1106
+ "items": {
1107
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1108
+ }
1109
+ }
1110
+ }
1111
+ }
1112
+ }
1113
+ },
1114
+ "security": [
1115
+ {
1116
+ "Bearer": [ ]
1117
+ }
1118
+ ]
1119
+ }
1120
+ },
1121
+ "/DeadlineRules/{deadlineRuleID}/attributes/{attributeID}/attrValues/{attrValue}": {
1122
+ "delete": {
1123
+ "tags": [
1124
+ "DeadlineRules"
1125
+ ],
1126
+ "summary": "Удаление атрибута у правила планового закрытия заявки",
1127
+ "description": "## Пример запроса:\r\n`DELETE /DeadlineRules/101/attributes/3/attrValues/10`\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 409 Conflict: ошибка валидации или конфликт данных.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleAttributeDelete`.",
1128
+ "parameters": [
1129
+ {
1130
+ "name": "deadlineRuleID",
1131
+ "in": "path",
1132
+ "description": "Идентификатор правила планового закрытия заявки.",
1133
+ "required": true,
1134
+ "schema": {
1135
+ "type": "integer",
1136
+ "format": "int32"
1137
+ }
1138
+ },
1139
+ {
1140
+ "name": "attributeID",
1141
+ "in": "path",
1142
+ "description": "Идентификатор атрибута.",
1143
+ "required": true,
1144
+ "schema": {
1145
+ "type": "integer",
1146
+ "format": "int32"
1147
+ }
1148
+ },
1149
+ {
1150
+ "name": "attrValue",
1151
+ "in": "path",
1152
+ "description": "Числовое значение атрибута.",
1153
+ "required": true,
1154
+ "schema": {
1155
+ "type": "integer",
1156
+ "format": "int32"
1157
+ }
1158
+ },
1159
+ {
1160
+ "name": "X-Application-ID",
1161
+ "in": "header",
1162
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1163
+ "schema": {
1164
+ "enum": [
1165
+ 1,
1166
+ 2,
1167
+ 3,
1168
+ 4,
1169
+ 5,
1170
+ 6
1171
+ ],
1172
+ "type": "integer",
1173
+ "format": "int32",
1174
+ "default": 3,
1175
+ "x-enumNames": [
1176
+ "EngineerMobile",
1177
+ "CustomerMobile",
1178
+ "MainWeb",
1179
+ "AdminWeb",
1180
+ "Api",
1181
+ "PlateWeb"
1182
+ ]
1183
+ }
1184
+ }
1185
+ ],
1186
+ "responses": {
1187
+ "202": {
1188
+ "description": "Удаление принято в обработку."
1189
+ },
1190
+ "401": {
1191
+ "description": "Отсутствует или некорректен Bearer-токен."
1192
+ },
1193
+ "403": {
1194
+ "description": "Недостаточно прав для удаления атрибута."
1195
+ },
1196
+ "409": {
1197
+ "description": "Ошибка валидации или конфликт данных. Тело ошибки: System.Collections.Generic.List`1.",
1198
+ "content": {
1199
+ "text/plain": {
1200
+ "schema": {
1201
+ "type": "array",
1202
+ "items": {
1203
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1204
+ }
1205
+ }
1206
+ },
1207
+ "application/json": {
1208
+ "schema": {
1209
+ "type": "array",
1210
+ "items": {
1211
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1212
+ }
1213
+ }
1214
+ },
1215
+ "text/json": {
1216
+ "schema": {
1217
+ "type": "array",
1218
+ "items": {
1219
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1220
+ }
1221
+ }
1222
+ }
1223
+ }
1224
+ }
1225
+ },
1226
+ "security": [
1227
+ {
1228
+ "Bearer": [ ]
1229
+ }
1230
+ ]
1231
+ },
1232
+ "post": {
1233
+ "tags": [
1234
+ "DeadlineRules"
1235
+ ],
1236
+ "summary": "Добавление атрибута к правилу планового закрытия заявки",
1237
+ "description": "## Пример запроса:\r\n`POST /DeadlineRules/101/attributes/3/attrValues/10`\r\n \r\n## Пример успешного ответа (201):\r\n```json\r\n[\r\n {\r\n \"deadlineRuleID\": 101,\r\n \"attributeID\": 3,\r\n \"attrNumbValue\": 10\r\n }\r\n]\r\n```\r\n## Негативные сценарии:\r\n- 409 Conflict: ошибка валидации или конфликт данных.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleAttributeAdd`.",
1238
+ "parameters": [
1239
+ {
1240
+ "name": "deadlineRuleID",
1241
+ "in": "path",
1242
+ "description": "Идентификатор правила планового закрытия заявки.",
1243
+ "required": true,
1244
+ "schema": {
1245
+ "type": "integer",
1246
+ "format": "int32"
1247
+ }
1248
+ },
1249
+ {
1250
+ "name": "attributeID",
1251
+ "in": "path",
1252
+ "description": "Идентификатор атрибута.",
1253
+ "required": true,
1254
+ "schema": {
1255
+ "type": "integer",
1256
+ "format": "int32"
1257
+ }
1258
+ },
1259
+ {
1260
+ "name": "attrValue",
1261
+ "in": "path",
1262
+ "description": "Числовое значение атрибута.",
1263
+ "required": true,
1264
+ "schema": {
1265
+ "type": "integer",
1266
+ "format": "int32"
1267
+ }
1268
+ },
1269
+ {
1270
+ "name": "X-Application-ID",
1271
+ "in": "header",
1272
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1273
+ "schema": {
1274
+ "enum": [
1275
+ 1,
1276
+ 2,
1277
+ 3,
1278
+ 4,
1279
+ 5,
1280
+ 6
1281
+ ],
1282
+ "type": "integer",
1283
+ "format": "int32",
1284
+ "default": 3,
1285
+ "x-enumNames": [
1286
+ "EngineerMobile",
1287
+ "CustomerMobile",
1288
+ "MainWeb",
1289
+ "AdminWeb",
1290
+ "Api",
1291
+ "PlateWeb"
1292
+ ]
1293
+ }
1294
+ }
1295
+ ],
1296
+ "responses": {
1297
+ "201": {
1298
+ "description": "Атрибут успешно добавлен.",
1299
+ "content": {
1300
+ "text/plain": {
1301
+ "schema": {
1302
+ "type": "array",
1303
+ "items": {
1304
+ "$ref": "#/components/schemas/ResultsDeadlineRuleAttributesDeadlineRuleAttributeResult"
1305
+ }
1306
+ }
1307
+ },
1308
+ "application/json": {
1309
+ "schema": {
1310
+ "type": "array",
1311
+ "items": {
1312
+ "$ref": "#/components/schemas/ResultsDeadlineRuleAttributesDeadlineRuleAttributeResult"
1313
+ }
1314
+ }
1315
+ },
1316
+ "text/json": {
1317
+ "schema": {
1318
+ "type": "array",
1319
+ "items": {
1320
+ "$ref": "#/components/schemas/ResultsDeadlineRuleAttributesDeadlineRuleAttributeResult"
1321
+ }
1322
+ }
1323
+ }
1324
+ }
1325
+ },
1326
+ "401": {
1327
+ "description": "Отсутствует или некорректен Bearer-токен."
1328
+ },
1329
+ "403": {
1330
+ "description": "Недостаточно прав для добавления атрибута."
1331
+ },
1332
+ "409": {
1333
+ "description": "Ошибка валидации или конфликт данных. Тело ошибки: System.Collections.Generic.List`1.",
1334
+ "content": {
1335
+ "text/plain": {
1336
+ "schema": {
1337
+ "type": "array",
1338
+ "items": {
1339
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1340
+ }
1341
+ }
1342
+ },
1343
+ "application/json": {
1344
+ "schema": {
1345
+ "type": "array",
1346
+ "items": {
1347
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1348
+ }
1349
+ }
1350
+ },
1351
+ "text/json": {
1352
+ "schema": {
1353
+ "type": "array",
1354
+ "items": {
1355
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1356
+ }
1357
+ }
1358
+ }
1359
+ }
1360
+ }
1361
+ },
1362
+ "security": [
1363
+ {
1364
+ "Bearer": [ ]
1365
+ }
1366
+ ]
1367
+ }
1368
+ },
1369
+ "/DeadlineRules/{DeadlineRuleID}": {
1370
+ "get": {
1371
+ "tags": [
1372
+ "DeadlineRules"
1373
+ ],
1374
+ "summary": "Получение правила планового закрытия заявки",
1375
+ "description": "## Пример запроса:\r\n`GET /DeadlineRules/101`\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"id\": 101,\r\n \"name\": \"Стандартное правило закрытия\",\r\n \"scheduleRuleID\": 5,\r\n \"isActive\": true,\r\n \"runtime\": 24.0\r\n}\r\n```\r\n## Негативные сценарии:\r\n- 204 NoContent: правило с указанным `DeadlineRuleID` не найдено.\r\n- 400 BadRequest: некорректный идентификатор правила.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleGet`.",
1376
+ "parameters": [
1377
+ {
1378
+ "name": "DeadlineRuleID",
1379
+ "in": "path",
1380
+ "description": "Идентификатор правила планового закрытия заявки.",
1381
+ "required": true,
1382
+ "schema": {
1383
+ "type": "integer",
1384
+ "format": "int32"
1385
+ }
1386
+ },
1387
+ {
1388
+ "name": "X-Application-ID",
1389
+ "in": "header",
1390
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1391
+ "schema": {
1392
+ "enum": [
1393
+ 1,
1394
+ 2,
1395
+ 3,
1396
+ 4,
1397
+ 5,
1398
+ 6
1399
+ ],
1400
+ "type": "integer",
1401
+ "format": "int32",
1402
+ "default": 3,
1403
+ "x-enumNames": [
1404
+ "EngineerMobile",
1405
+ "CustomerMobile",
1406
+ "MainWeb",
1407
+ "AdminWeb",
1408
+ "Api",
1409
+ "PlateWeb"
1410
+ ]
1411
+ }
1412
+ }
1413
+ ],
1414
+ "responses": {
1415
+ "200": {
1416
+ "description": "Детальная информация о правиле планового закрытия заявки.",
1417
+ "content": {
1418
+ "text/plain": {
1419
+ "schema": {
1420
+ "$ref": "#/components/schemas/ResultsDeadlineRulesGetResult"
1421
+ }
1422
+ },
1423
+ "application/json": {
1424
+ "schema": {
1425
+ "$ref": "#/components/schemas/ResultsDeadlineRulesGetResult"
1426
+ }
1427
+ },
1428
+ "text/json": {
1429
+ "schema": {
1430
+ "$ref": "#/components/schemas/ResultsDeadlineRulesGetResult"
1431
+ }
1432
+ }
1433
+ }
1434
+ },
1435
+ "204": {
1436
+ "description": "Правило с указанным идентификатором не найдено."
1437
+ },
1438
+ "400": {
1439
+ "description": "Некорректный идентификатор правила.",
1440
+ "content": {
1441
+ "text/plain": {
1442
+ "schema": {
1443
+ "type": "array",
1444
+ "items": {
1445
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1446
+ }
1447
+ }
1448
+ },
1449
+ "application/json": {
1450
+ "schema": {
1451
+ "type": "array",
1452
+ "items": {
1453
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1454
+ }
1455
+ }
1456
+ },
1457
+ "text/json": {
1458
+ "schema": {
1459
+ "type": "array",
1460
+ "items": {
1461
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1462
+ }
1463
+ }
1464
+ }
1465
+ }
1466
+ },
1467
+ "401": {
1468
+ "description": "Отсутствует или некорректен Bearer-токен."
1469
+ },
1470
+ "403": {
1471
+ "description": "Недостаточно прав для чтения правила."
1472
+ }
1473
+ },
1474
+ "security": [
1475
+ {
1476
+ "Bearer": [ ]
1477
+ }
1478
+ ]
1479
+ },
1480
+ "delete": {
1481
+ "tags": [
1482
+ "DeadlineRules"
1483
+ ],
1484
+ "summary": "Удаление правила планового закрытия заявки",
1485
+ "description": "## Пример запроса:\r\n`DELETE /DeadlineRules/101`\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 409 Conflict: правило не может быть удалено из-за связанных данных.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleDelete`.",
1486
+ "parameters": [
1487
+ {
1488
+ "name": "DeadlineRuleID",
1489
+ "in": "path",
1490
+ "description": "Идентификатор правила планового закрытия заявки.",
1491
+ "required": true,
1492
+ "schema": {
1493
+ "type": "integer",
1494
+ "format": "int32"
1495
+ }
1496
+ },
1497
+ {
1498
+ "name": "X-Application-ID",
1499
+ "in": "header",
1500
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1501
+ "schema": {
1502
+ "enum": [
1503
+ 1,
1504
+ 2,
1505
+ 3,
1506
+ 4,
1507
+ 5,
1508
+ 6
1509
+ ],
1510
+ "type": "integer",
1511
+ "format": "int32",
1512
+ "default": 3,
1513
+ "x-enumNames": [
1514
+ "EngineerMobile",
1515
+ "CustomerMobile",
1516
+ "MainWeb",
1517
+ "AdminWeb",
1518
+ "Api",
1519
+ "PlateWeb"
1520
+ ]
1521
+ }
1522
+ }
1523
+ ],
1524
+ "responses": {
1525
+ "202": {
1526
+ "description": "Удаление принято в обработку."
1527
+ },
1528
+ "401": {
1529
+ "description": "Отсутствует или некорректен Bearer-токен."
1530
+ },
1531
+ "403": {
1532
+ "description": "Недостаточно прав для удаления правила."
1533
+ },
1534
+ "409": {
1535
+ "description": "Ошибка удаления. Тело ошибки: System.Collections.Generic.List`1.",
1536
+ "content": {
1537
+ "text/plain": {
1538
+ "schema": {
1539
+ "type": "array",
1540
+ "items": {
1541
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1542
+ }
1543
+ }
1544
+ },
1545
+ "application/json": {
1546
+ "schema": {
1547
+ "type": "array",
1548
+ "items": {
1549
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1550
+ }
1551
+ }
1552
+ },
1553
+ "text/json": {
1554
+ "schema": {
1555
+ "type": "array",
1556
+ "items": {
1557
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1558
+ }
1559
+ }
1560
+ }
1561
+ }
1562
+ }
1563
+ },
1564
+ "security": [
1565
+ {
1566
+ "Bearer": [ ]
1567
+ }
1568
+ ]
1569
+ }
1570
+ },
1571
+ "/DeadlineRules": {
1572
+ "get": {
1573
+ "tags": [
1574
+ "DeadlineRules"
1575
+ ],
1576
+ "summary": "Получение списка правил планового закрытия заявки",
1577
+ "description": "## Пример запроса:\r\n`GET /DeadlineRules`\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"101\": {\r\n \"id\": 101,\r\n \"name\": \"Стандартное правило закрытия\",\r\n \"scheduleRuleID\": 5,\r\n \"isActive\": true,\r\n \"runtime\": 24.0\r\n }\r\n}\r\n```\r\n## Пример успешного ответа (206):\r\nТело ответа имеет тот же формат, что и для `200`, но содержит частичный диапазон.\r\n## Негативные сценарии:\r\n- 204 NoContent: правила не найдены.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleList`.\r\n- 500 InternalServerError: внутренняя ошибка сервера.",
1578
+ "parameters": [
1579
+ {
1580
+ "name": "Range",
1581
+ "in": "header",
1582
+ "description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
1583
+ "schema": {
1584
+ "type": "string"
1585
+ }
1586
+ },
1587
+ {
1588
+ "name": "offset",
1589
+ "in": "query",
1590
+ "description": "количество элементов, которое нобходимо пропустить",
1591
+ "schema": {
1592
+ "type": "string"
1593
+ }
1594
+ },
1595
+ {
1596
+ "name": "fetch",
1597
+ "in": "query",
1598
+ "description": "количество элементов, которое необходимо вернуть",
1599
+ "schema": {
1600
+ "type": "string"
1601
+ }
1602
+ },
1603
+ {
1604
+ "name": "X-Application-ID",
1605
+ "in": "header",
1606
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1607
+ "schema": {
1608
+ "enum": [
1609
+ 1,
1610
+ 2,
1611
+ 3,
1612
+ 4,
1613
+ 5,
1614
+ 6
1615
+ ],
1616
+ "type": "integer",
1617
+ "format": "int32",
1618
+ "default": 3,
1619
+ "x-enumNames": [
1620
+ "EngineerMobile",
1621
+ "CustomerMobile",
1622
+ "MainWeb",
1623
+ "AdminWeb",
1624
+ "Api",
1625
+ "PlateWeb"
1626
+ ]
1627
+ }
1628
+ }
1629
+ ],
1630
+ "responses": {
1631
+ "200": {
1632
+ "description": "Полный список правил в пределах запрошенного диапазона.",
1633
+ "content": {
1634
+ "text/plain": {
1635
+ "schema": {
1636
+ "type": "object",
1637
+ "additionalProperties": {
1638
+ "$ref": "#/components/schemas/ResultsDeadlineRulesListResult"
1639
+ }
1640
+ }
1641
+ },
1642
+ "application/json": {
1643
+ "schema": {
1644
+ "type": "object",
1645
+ "additionalProperties": {
1646
+ "$ref": "#/components/schemas/ResultsDeadlineRulesListResult"
1647
+ }
1648
+ }
1649
+ },
1650
+ "text/json": {
1651
+ "schema": {
1652
+ "type": "object",
1653
+ "additionalProperties": {
1654
+ "$ref": "#/components/schemas/ResultsDeadlineRulesListResult"
1655
+ }
1656
+ }
1657
+ }
1658
+ }
1659
+ },
1660
+ "206": {
1661
+ "description": "Частичный список правил, если диапазон ограничивает выборку.",
1662
+ "content": {
1663
+ "text/plain": {
1664
+ "schema": {
1665
+ "type": "object",
1666
+ "additionalProperties": {
1667
+ "$ref": "#/components/schemas/ResultsDeadlineRulesListResult"
1668
+ }
1669
+ }
1670
+ },
1671
+ "application/json": {
1672
+ "schema": {
1673
+ "type": "object",
1674
+ "additionalProperties": {
1675
+ "$ref": "#/components/schemas/ResultsDeadlineRulesListResult"
1676
+ }
1677
+ }
1678
+ },
1679
+ "text/json": {
1680
+ "schema": {
1681
+ "type": "object",
1682
+ "additionalProperties": {
1683
+ "$ref": "#/components/schemas/ResultsDeadlineRulesListResult"
1684
+ }
1685
+ }
1686
+ }
1687
+ }
1688
+ },
1689
+ "204": {
1690
+ "description": "Правила не найдены."
1691
+ },
1692
+ "401": {
1693
+ "description": "Отсутствует или некорректен Bearer-токен."
1694
+ },
1695
+ "403": {
1696
+ "description": "Недостаточно прав для просмотра списка правил."
1697
+ },
1698
+ "500": {
1699
+ "description": "Внутренняя ошибка сервера.",
1700
+ "content": {
1701
+ "text/plain": {
1702
+ "schema": {
1703
+ "type": "array",
1704
+ "items": {
1705
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1706
+ }
1707
+ }
1708
+ },
1709
+ "application/json": {
1710
+ "schema": {
1711
+ "type": "array",
1712
+ "items": {
1713
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1714
+ }
1715
+ }
1716
+ },
1717
+ "text/json": {
1718
+ "schema": {
1719
+ "type": "array",
1720
+ "items": {
1721
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1722
+ }
1723
+ }
1724
+ }
1725
+ }
1726
+ }
1727
+ },
1728
+ "security": [
1729
+ {
1730
+ "Bearer": [ ]
1731
+ }
1732
+ ]
1733
+ },
1734
+ "post": {
1735
+ "tags": [
1736
+ "DeadlineRules"
1737
+ ],
1738
+ "summary": "Создание правил планового закрытия заявки",
1739
+ "description": "## Пример запроса:\r\n```json\r\n[\r\n {\r\n \"name\": \"Стандартное правило закрытия\",\r\n \"scheduleRuleID\": 5,\r\n \"runtime\": 24.0\r\n }\r\n]\r\n```\r\n## Пример успешного ответа (201):\r\n```json\r\n[\r\n {\r\n \"id\": 101\r\n }\r\n]\r\n```\r\n## Негативные сценарии:\r\n- 409 Conflict: ошибка валидации или конфликт данных.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleAdd`.",
1740
+ "parameters": [
1741
+ {
1742
+ "name": "X-Application-ID",
1743
+ "in": "header",
1744
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1745
+ "schema": {
1746
+ "enum": [
1747
+ 1,
1748
+ 2,
1749
+ 3,
1750
+ 4,
1751
+ 5,
1752
+ 6
1753
+ ],
1754
+ "type": "integer",
1755
+ "format": "int32",
1756
+ "default": 3,
1757
+ "x-enumNames": [
1758
+ "EngineerMobile",
1759
+ "CustomerMobile",
1760
+ "MainWeb",
1761
+ "AdminWeb",
1762
+ "Api",
1763
+ "PlateWeb"
1764
+ ]
1765
+ }
1766
+ }
1767
+ ],
1768
+ "requestBody": {
1769
+ "description": "Коллекция данных для создания правил.",
1770
+ "content": {
1771
+ "application/json-patch+json": {
1772
+ "schema": {
1773
+ "type": "array",
1774
+ "items": {
1775
+ "$ref": "#/components/schemas/SLADeadlineRuleDeadlineRuleAddData"
1776
+ }
1777
+ }
1778
+ },
1779
+ "application/json": {
1780
+ "schema": {
1781
+ "type": "array",
1782
+ "items": {
1783
+ "$ref": "#/components/schemas/SLADeadlineRuleDeadlineRuleAddData"
1784
+ }
1785
+ }
1786
+ },
1787
+ "text/json": {
1788
+ "schema": {
1789
+ "type": "array",
1790
+ "items": {
1791
+ "$ref": "#/components/schemas/SLADeadlineRuleDeadlineRuleAddData"
1792
+ }
1793
+ }
1794
+ },
1795
+ "application/*+json": {
1796
+ "schema": {
1797
+ "type": "array",
1798
+ "items": {
1799
+ "$ref": "#/components/schemas/SLADeadlineRuleDeadlineRuleAddData"
1800
+ }
1801
+ }
1802
+ }
1803
+ }
1804
+ },
1805
+ "responses": {
1806
+ "201": {
1807
+ "description": "Правила успешно созданы.",
1808
+ "content": {
1809
+ "text/plain": {
1810
+ "schema": {
1811
+ "type": "array",
1812
+ "items": {
1813
+ "$ref": "#/components/schemas/ResultsDeadlineRulesPostResult"
1814
+ }
1815
+ }
1816
+ },
1817
+ "application/json": {
1818
+ "schema": {
1819
+ "type": "array",
1820
+ "items": {
1821
+ "$ref": "#/components/schemas/ResultsDeadlineRulesPostResult"
1822
+ }
1823
+ }
1824
+ },
1825
+ "text/json": {
1826
+ "schema": {
1827
+ "type": "array",
1828
+ "items": {
1829
+ "$ref": "#/components/schemas/ResultsDeadlineRulesPostResult"
1830
+ }
1831
+ }
1832
+ }
1833
+ }
1834
+ },
1835
+ "401": {
1836
+ "description": "Отсутствует или некорректен Bearer-токен."
1837
+ },
1838
+ "403": {
1839
+ "description": "Недостаточно прав для создания правил."
1840
+ },
1841
+ "409": {
1842
+ "description": "Ошибка валидации или конфликт данных. Тело ошибки: System.Collections.Generic.List`1.",
1843
+ "content": {
1844
+ "text/plain": {
1845
+ "schema": {
1846
+ "type": "array",
1847
+ "items": {
1848
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1849
+ }
1850
+ }
1851
+ },
1852
+ "application/json": {
1853
+ "schema": {
1854
+ "type": "array",
1855
+ "items": {
1856
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1857
+ }
1858
+ }
1859
+ },
1860
+ "text/json": {
1861
+ "schema": {
1862
+ "type": "array",
1863
+ "items": {
1864
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1865
+ }
1866
+ }
1867
+ }
1868
+ }
1869
+ }
1870
+ },
1871
+ "security": [
1872
+ {
1873
+ "Bearer": [ ]
1874
+ }
1875
+ ]
1876
+ },
1877
+ "put": {
1878
+ "tags": [
1879
+ "DeadlineRules"
1880
+ ],
1881
+ "summary": "Обновление правил планового закрытия заявки",
1882
+ "description": "## Пример запроса:\r\n```json\r\n[\r\n {\r\n \"id\": 101,\r\n \"name\": \"Обновленное правило закрытия\",\r\n \"scheduleRuleID\": 5,\r\n \"runtime\": 48.0\r\n }\r\n]\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 409 Conflict: ошибка валидации или конфликт данных.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleUpdate`.",
1883
+ "parameters": [
1884
+ {
1885
+ "name": "X-Application-ID",
1886
+ "in": "header",
1887
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
1888
+ "schema": {
1889
+ "enum": [
1890
+ 1,
1891
+ 2,
1892
+ 3,
1893
+ 4,
1894
+ 5,
1895
+ 6
1896
+ ],
1897
+ "type": "integer",
1898
+ "format": "int32",
1899
+ "default": 3,
1900
+ "x-enumNames": [
1901
+ "EngineerMobile",
1902
+ "CustomerMobile",
1903
+ "MainWeb",
1904
+ "AdminWeb",
1905
+ "Api",
1906
+ "PlateWeb"
1907
+ ]
1908
+ }
1909
+ }
1910
+ ],
1911
+ "requestBody": {
1912
+ "description": "Коллекция данных для обновления правил.",
1913
+ "content": {
1914
+ "application/json-patch+json": {
1915
+ "schema": {
1916
+ "type": "array",
1917
+ "items": {
1918
+ "$ref": "#/components/schemas/SLADeadlineRuleDeadlineRuleUpdateData"
1919
+ }
1920
+ }
1921
+ },
1922
+ "application/json": {
1923
+ "schema": {
1924
+ "type": "array",
1925
+ "items": {
1926
+ "$ref": "#/components/schemas/SLADeadlineRuleDeadlineRuleUpdateData"
1927
+ }
1928
+ }
1929
+ },
1930
+ "text/json": {
1931
+ "schema": {
1932
+ "type": "array",
1933
+ "items": {
1934
+ "$ref": "#/components/schemas/SLADeadlineRuleDeadlineRuleUpdateData"
1935
+ }
1936
+ }
1937
+ },
1938
+ "application/*+json": {
1939
+ "schema": {
1940
+ "type": "array",
1941
+ "items": {
1942
+ "$ref": "#/components/schemas/SLADeadlineRuleDeadlineRuleUpdateData"
1943
+ }
1944
+ }
1945
+ }
1946
+ }
1947
+ },
1948
+ "responses": {
1949
+ "202": {
1950
+ "description": "Изменения приняты в обработку."
1951
+ },
1952
+ "401": {
1953
+ "description": "Отсутствует или некорректен Bearer-токен."
1954
+ },
1955
+ "403": {
1956
+ "description": "Недостаточно прав для изменения правил."
1957
+ },
1958
+ "409": {
1959
+ "description": "Ошибка валидации или конфликт данных. Тело ошибки: System.Collections.Generic.List`1.",
1960
+ "content": {
1961
+ "text/plain": {
1962
+ "schema": {
1963
+ "type": "array",
1964
+ "items": {
1965
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1966
+ }
1967
+ }
1968
+ },
1969
+ "application/json": {
1970
+ "schema": {
1971
+ "type": "array",
1972
+ "items": {
1973
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1974
+ }
1975
+ }
1976
+ },
1977
+ "text/json": {
1978
+ "schema": {
1979
+ "type": "array",
1980
+ "items": {
1981
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
1982
+ }
1983
+ }
1984
+ }
1985
+ }
1986
+ }
1987
+ },
1988
+ "security": [
1989
+ {
1990
+ "Bearer": [ ]
1991
+ }
1992
+ ]
1993
+ },
1994
+ "delete": {
1995
+ "tags": [
1996
+ "DeadlineRules"
1997
+ ],
1998
+ "summary": "Удаление правил планового закрытия заявки",
1999
+ "description": "## Пример запроса:\r\n```json\r\n[101, 102]\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 409 Conflict: одно или несколько правил не могут быть удалены.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleDelete`.",
2000
+ "parameters": [
2001
+ {
2002
+ "name": "X-Application-ID",
2003
+ "in": "header",
2004
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
2005
+ "schema": {
2006
+ "enum": [
2007
+ 1,
2008
+ 2,
2009
+ 3,
2010
+ 4,
2011
+ 5,
2012
+ 6
2013
+ ],
2014
+ "type": "integer",
2015
+ "format": "int32",
2016
+ "default": 3,
2017
+ "x-enumNames": [
2018
+ "EngineerMobile",
2019
+ "CustomerMobile",
2020
+ "MainWeb",
2021
+ "AdminWeb",
2022
+ "Api",
2023
+ "PlateWeb"
2024
+ ]
2025
+ }
2026
+ }
2027
+ ],
2028
+ "requestBody": {
2029
+ "description": "Список идентификаторов правил для удаления.",
2030
+ "content": {
2031
+ "application/json-patch+json": {
2032
+ "schema": {
2033
+ "type": "array",
2034
+ "items": {
2035
+ "type": "integer",
2036
+ "format": "int32"
2037
+ }
2038
+ }
2039
+ },
2040
+ "application/json": {
2041
+ "schema": {
2042
+ "type": "array",
2043
+ "items": {
2044
+ "type": "integer",
2045
+ "format": "int32"
2046
+ }
2047
+ }
2048
+ },
2049
+ "text/json": {
2050
+ "schema": {
2051
+ "type": "array",
2052
+ "items": {
2053
+ "type": "integer",
2054
+ "format": "int32"
2055
+ }
2056
+ }
2057
+ },
2058
+ "application/*+json": {
2059
+ "schema": {
2060
+ "type": "array",
2061
+ "items": {
2062
+ "type": "integer",
2063
+ "format": "int32"
2064
+ }
2065
+ }
2066
+ }
2067
+ }
2068
+ },
2069
+ "responses": {
2070
+ "202": {
2071
+ "description": "Удаление принято в обработку."
2072
+ },
2073
+ "401": {
2074
+ "description": "Отсутствует или некорректен Bearer-токен."
2075
+ },
2076
+ "403": {
2077
+ "description": "Недостаточно прав для удаления правил."
2078
+ },
2079
+ "409": {
2080
+ "description": "Ошибка удаления. Тело ошибки: System.Collections.Generic.List`1.",
2081
+ "content": {
2082
+ "text/plain": {
2083
+ "schema": {
2084
+ "type": "array",
2085
+ "items": {
2086
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
2087
+ }
2088
+ }
2089
+ },
2090
+ "application/json": {
2091
+ "schema": {
2092
+ "type": "array",
2093
+ "items": {
2094
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
2095
+ }
2096
+ }
2097
+ },
2098
+ "text/json": {
2099
+ "schema": {
2100
+ "type": "array",
2101
+ "items": {
2102
+ "$ref": "#/components/schemas/ExceptionHandlingModelsErrorModel"
2103
+ }
2104
+ }
2105
+ }
2106
+ }
2107
+ }
2108
+ },
2109
+ "security": [
2110
+ {
2111
+ "Bearer": [ ]
2112
+ }
2113
+ ]
2114
+ }
2115
+ },
2116
+ "/DeadlineRules/{DeadlineRuleID}/activate": {
2117
+ "put": {
2118
+ "tags": [
2119
+ "DeadlineRules"
2120
+ ],
2121
+ "summary": "Активация правила планового закрытия заявки",
2122
+ "description": "## Пример запроса:\r\n`PUT /DeadlineRules/101/activate`\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleActivate`.",
2123
+ "parameters": [
2124
+ {
2125
+ "name": "DeadlineRuleID",
2126
+ "in": "path",
2127
+ "description": "Идентификатор правила планового закрытия заявки.",
2128
+ "required": true,
2129
+ "schema": {
2130
+ "type": "integer",
2131
+ "format": "int32"
2132
+ }
2133
+ },
2134
+ {
2135
+ "name": "X-Application-ID",
2136
+ "in": "header",
2137
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
2138
+ "schema": {
2139
+ "enum": [
2140
+ 1,
2141
+ 2,
2142
+ 3,
2143
+ 4,
2144
+ 5,
2145
+ 6
2146
+ ],
2147
+ "type": "integer",
2148
+ "format": "int32",
2149
+ "default": 3,
2150
+ "x-enumNames": [
2151
+ "EngineerMobile",
2152
+ "CustomerMobile",
2153
+ "MainWeb",
2154
+ "AdminWeb",
2155
+ "Api",
2156
+ "PlateWeb"
2157
+ ]
2158
+ }
2159
+ }
2160
+ ],
2161
+ "responses": {
2162
+ "202": {
2163
+ "description": "Активация принята в обработку."
2164
+ },
2165
+ "401": {
2166
+ "description": "Отсутствует или некорректен Bearer-токен."
2167
+ },
2168
+ "403": {
2169
+ "description": "Недостаточно прав для активации правила."
2170
+ }
2171
+ },
2172
+ "security": [
2173
+ {
2174
+ "Bearer": [ ]
2175
+ }
2176
+ ]
2177
+ }
2178
+ },
2179
+ "/DeadlineRules/{DeadlineRuleID}/deactivate": {
2180
+ "put": {
2181
+ "tags": [
2182
+ "DeadlineRules"
2183
+ ],
2184
+ "summary": "Деактивация правила планового закрытия заявки",
2185
+ "description": "## Пример запроса:\r\n`PUT /DeadlineRules/101/deactivate`\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleDeactivate`.",
2186
+ "parameters": [
2187
+ {
2188
+ "name": "DeadlineRuleID",
2189
+ "in": "path",
2190
+ "description": "Идентификатор правила планового закрытия заявки.",
2191
+ "required": true,
2192
+ "schema": {
2193
+ "type": "integer",
2194
+ "format": "int32"
2195
+ }
2196
+ },
2197
+ {
2198
+ "name": "X-Application-ID",
2199
+ "in": "header",
2200
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
2201
+ "schema": {
2202
+ "enum": [
2203
+ 1,
2204
+ 2,
2205
+ 3,
2206
+ 4,
2207
+ 5,
2208
+ 6
2209
+ ],
2210
+ "type": "integer",
2211
+ "format": "int32",
2212
+ "default": 3,
2213
+ "x-enumNames": [
2214
+ "EngineerMobile",
2215
+ "CustomerMobile",
2216
+ "MainWeb",
2217
+ "AdminWeb",
2218
+ "Api",
2219
+ "PlateWeb"
2220
+ ]
2221
+ }
2222
+ }
2223
+ ],
2224
+ "responses": {
2225
+ "202": {
2226
+ "description": "Деактивация принята в обработку."
2227
+ },
2228
+ "401": {
2229
+ "description": "Отсутствует или некорректен Bearer-токен."
2230
+ },
2231
+ "403": {
2232
+ "description": "Недостаточно прав для деактивации правила."
2233
+ }
2234
+ },
2235
+ "security": [
2236
+ {
2237
+ "Bearer": [ ]
2238
+ }
2239
+ ]
2240
+ }
2241
+ },
2242
+ "/DeadlineRules/activate": {
2243
+ "put": {
2244
+ "tags": [
2245
+ "DeadlineRules"
2246
+ ],
2247
+ "summary": "Активация правил планового закрытия заявки",
2248
+ "description": "## Пример запроса:\r\n```json\r\n[101, 102]\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleActivate`.",
2249
+ "parameters": [
2250
+ {
2251
+ "name": "X-Application-ID",
2252
+ "in": "header",
2253
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
2254
+ "schema": {
2255
+ "enum": [
2256
+ 1,
2257
+ 2,
2258
+ 3,
2259
+ 4,
2260
+ 5,
2261
+ 6
2262
+ ],
2263
+ "type": "integer",
2264
+ "format": "int32",
2265
+ "default": 3,
2266
+ "x-enumNames": [
2267
+ "EngineerMobile",
2268
+ "CustomerMobile",
2269
+ "MainWeb",
2270
+ "AdminWeb",
2271
+ "Api",
2272
+ "PlateWeb"
2273
+ ]
2274
+ }
2275
+ }
2276
+ ],
2277
+ "requestBody": {
2278
+ "description": "Список идентификаторов правил для активации.",
2279
+ "content": {
2280
+ "application/json-patch+json": {
2281
+ "schema": {
2282
+ "type": "array",
2283
+ "items": {
2284
+ "type": "integer",
2285
+ "format": "int32"
2286
+ }
2287
+ }
2288
+ },
2289
+ "application/json": {
2290
+ "schema": {
2291
+ "type": "array",
2292
+ "items": {
2293
+ "type": "integer",
2294
+ "format": "int32"
2295
+ }
2296
+ }
2297
+ },
2298
+ "text/json": {
2299
+ "schema": {
2300
+ "type": "array",
2301
+ "items": {
2302
+ "type": "integer",
2303
+ "format": "int32"
2304
+ }
2305
+ }
2306
+ },
2307
+ "application/*+json": {
2308
+ "schema": {
2309
+ "type": "array",
2310
+ "items": {
2311
+ "type": "integer",
2312
+ "format": "int32"
2313
+ }
2314
+ }
2315
+ }
2316
+ }
2317
+ },
2318
+ "responses": {
2319
+ "202": {
2320
+ "description": "Активация принята в обработку."
2321
+ },
2322
+ "401": {
2323
+ "description": "Отсутствует или некорректен Bearer-токен."
2324
+ },
2325
+ "403": {
2326
+ "description": "Недостаточно прав для активации правил."
2327
+ }
2328
+ },
2329
+ "security": [
2330
+ {
2331
+ "Bearer": [ ]
2332
+ }
2333
+ ]
2334
+ }
2335
+ },
2336
+ "/DeadlineRules/deactivate": {
2337
+ "put": {
2338
+ "tags": [
2339
+ "DeadlineRules"
2340
+ ],
2341
+ "summary": "Деактивация правил планового закрытия заявки",
2342
+ "description": "## Пример запроса:\r\n```json\r\n[101, 102]\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `DeadlineRuleDeactivate`.",
2343
+ "parameters": [
2344
+ {
2345
+ "name": "X-Application-ID",
2346
+ "in": "header",
2347
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
2348
+ "schema": {
2349
+ "enum": [
2350
+ 1,
2351
+ 2,
2352
+ 3,
2353
+ 4,
2354
+ 5,
2355
+ 6
2356
+ ],
2357
+ "type": "integer",
2358
+ "format": "int32",
2359
+ "default": 3,
2360
+ "x-enumNames": [
2361
+ "EngineerMobile",
2362
+ "CustomerMobile",
2363
+ "MainWeb",
2364
+ "AdminWeb",
2365
+ "Api",
2366
+ "PlateWeb"
2367
+ ]
2368
+ }
2369
+ }
2370
+ ],
2371
+ "requestBody": {
2372
+ "description": "Список идентификаторов правил для деактивации.",
2373
+ "content": {
2374
+ "application/json-patch+json": {
2375
+ "schema": {
2376
+ "type": "array",
2377
+ "items": {
2378
+ "type": "integer",
2379
+ "format": "int32"
2380
+ }
2381
+ }
2382
+ },
2383
+ "application/json": {
2384
+ "schema": {
2385
+ "type": "array",
2386
+ "items": {
2387
+ "type": "integer",
2388
+ "format": "int32"
2389
+ }
2390
+ }
2391
+ },
2392
+ "text/json": {
2393
+ "schema": {
2394
+ "type": "array",
2395
+ "items": {
2396
+ "type": "integer",
2397
+ "format": "int32"
2398
+ }
2399
+ }
2400
+ },
2401
+ "application/*+json": {
2402
+ "schema": {
2403
+ "type": "array",
2404
+ "items": {
2405
+ "type": "integer",
2406
+ "format": "int32"
2407
+ }
2408
+ }
2409
+ }
2410
+ }
2411
+ },
2412
+ "responses": {
2413
+ "202": {
2414
+ "description": "Деактивация принята в обработку."
2415
+ },
2416
+ "401": {
2417
+ "description": "Отсутствует или некорректен Bearer-токен."
2418
+ },
2419
+ "403": {
2420
+ "description": "Недостаточно прав для деактивации правил."
2421
+ }
2422
+ },
2423
+ "security": [
2424
+ {
2425
+ "Bearer": [ ]
2426
+ }
2427
+ ]
2428
+ }
2429
+ }
2430
+ },
2431
+ "components": {
2432
+ "schemas": {
2433
+ "DeadlineRuleActionDataOfDeadlineRuleAttributeData": {
2434
+ "required": [
2435
+ "data",
2436
+ "deadlineRuleID"
2437
+ ],
2438
+ "type": "object",
2439
+ "properties": {
2440
+ "data": {
2441
+ "type": "array",
2442
+ "items": {
2443
+ "$ref": "#/components/schemas/SLADeadlineRuleAttributeDeadlineRuleAttributeData"
2444
+ }
2445
+ },
2446
+ "deadlineRuleID": {
2447
+ "type": "integer",
2448
+ "format": "int32"
2449
+ }
2450
+ },
2451
+ "additionalProperties": false
2452
+ },
2453
+ "ExceptionHandlingModelsErrorModel": {
2454
+ "type": "object",
2455
+ "properties": {
2456
+ "traceIdentifier": {
2457
+ "type": "string",
2458
+ "nullable": true
2459
+ },
2460
+ "code": {
2461
+ "type": "string",
2462
+ "nullable": true
2463
+ },
2464
+ "message": {
2465
+ "type": "string",
2466
+ "nullable": true
2467
+ },
2468
+ "arguments": {
2469
+ "type": "object",
2470
+ "additionalProperties": {
2471
+ "type": "string",
2472
+ "nullable": true
2473
+ },
2474
+ "nullable": true
2475
+ }
2476
+ },
2477
+ "additionalProperties": false
2478
+ },
2479
+ "ResultsAttributesListResult": {
2480
+ "type": "object",
2481
+ "properties": {
2482
+ "name": {
2483
+ "type": "string",
2484
+ "description": "Имя атрибута",
2485
+ "nullable": true,
2486
+ "example": "Тип заявки"
2487
+ }
2488
+ },
2489
+ "additionalProperties": false,
2490
+ "description": "Список атрибутов SLA"
2491
+ },
2492
+ "ResultsCriticalitiesGetResult": {
2493
+ "type": "object",
2494
+ "properties": {
2495
+ "name": {
2496
+ "type": "string",
2497
+ "description": "Название критичности",
2498
+ "nullable": true,
2499
+ "example": "Высокая"
2500
+ },
2501
+ "color": {
2502
+ "type": "string",
2503
+ "description": "Цвет критичности",
2504
+ "nullable": true,
2505
+ "example": "#FF0000"
2506
+ },
2507
+ "isDefault": {
2508
+ "type": "boolean",
2509
+ "description": "Признак, что данная критичность будет применена для заявки, если явно не указана другая",
2510
+ "example": false
2511
+ },
2512
+ "sortOrder": {
2513
+ "type": "integer",
2514
+ "description": "Номер сортировки",
2515
+ "format": "int32",
2516
+ "example": 1
2517
+ },
2518
+ "erpID": {
2519
+ "type": "string",
2520
+ "description": "Идентификатор объекта во внешней системе",
2521
+ "nullable": true,
2522
+ "example": "ERP-CRIT-001"
2523
+ }
2524
+ },
2525
+ "additionalProperties": false,
2526
+ "description": "Критичность"
2527
+ },
2528
+ "ResultsDeadlineRuleAttributesDeadlineRuleAttributeResult": {
2529
+ "type": "object",
2530
+ "properties": {
2531
+ "deadlineRuleID": {
2532
+ "type": "integer",
2533
+ "description": "Идентификатор правила планового закрытия заявки",
2534
+ "format": "int32",
2535
+ "example": 101
2536
+ },
2537
+ "attributeID": {
2538
+ "type": "integer",
2539
+ "description": "Идентификатор атрибута",
2540
+ "format": "int32",
2541
+ "example": 3
2542
+ },
2543
+ "attrNumbValue": {
2544
+ "type": "integer",
2545
+ "description": "Значение атрибута",
2546
+ "format": "int32",
2547
+ "example": 10
2548
+ }
2549
+ },
2550
+ "additionalProperties": false,
2551
+ "description": "Результат добавления атрибутов к правилу планового закрытия заявки"
2552
+ },
2553
+ "ResultsDeadlineRulesGetResult": {
2554
+ "type": "object",
2555
+ "properties": {
2556
+ "id": {
2557
+ "type": "integer",
2558
+ "description": "Идентификатор правила планового закрытия заявки",
2559
+ "format": "int32",
2560
+ "example": 101
2561
+ },
2562
+ "name": {
2563
+ "type": "string",
2564
+ "description": "Название правила планового закрытия заявки",
2565
+ "nullable": true,
2566
+ "example": "Стандартное правило закрытия"
2567
+ },
2568
+ "scheduleRuleID": {
2569
+ "type": "integer",
2570
+ "description": "График для правила планового закрытия заявки",
2571
+ "format": "int32",
2572
+ "example": 5
2573
+ },
2574
+ "isActive": {
2575
+ "type": "boolean",
2576
+ "description": "Признак активности правила планового закрытия заявки",
2577
+ "example": true
2578
+ },
2579
+ "runtime": {
2580
+ "type": "number",
2581
+ "description": "Время выполнение (в часах) для правила планового закрытия заявки",
2582
+ "format": "double",
2583
+ "example": 24
2584
+ }
2585
+ },
2586
+ "additionalProperties": false,
2587
+ "description": "Детальная информация по правилу планового закрытия заявки"
2588
+ },
2589
+ "ResultsDeadlineRulesListResult": {
2590
+ "type": "object",
2591
+ "properties": {
2592
+ "id": {
2593
+ "type": "integer",
2594
+ "description": "Идентификатор правила планового закрытия заявки",
2595
+ "format": "int32",
2596
+ "example": 101
2597
+ },
2598
+ "name": {
2599
+ "type": "string",
2600
+ "description": "Название правила планового закрытия заявки",
2601
+ "nullable": true,
2602
+ "example": "Стандартное правило закрытия"
2603
+ },
2604
+ "scheduleRuleID": {
2605
+ "type": "integer",
2606
+ "description": "График для правила планового закрытия заявки",
2607
+ "format": "int32",
2608
+ "example": 5
2609
+ },
2610
+ "isActive": {
2611
+ "type": "boolean",
2612
+ "description": "Признак активности правила планового закрытия заявки",
2613
+ "example": true
2614
+ },
2615
+ "runtime": {
2616
+ "type": "number",
2617
+ "description": "Время выполнение (в часах) для правила планового закрытия заявки",
2618
+ "format": "double",
2619
+ "example": 24
2620
+ }
2621
+ },
2622
+ "additionalProperties": false,
2623
+ "description": "Список правил планового закрытия заявки"
2624
+ },
2625
+ "ResultsDeadlineRulesPostResult": {
2626
+ "type": "object",
2627
+ "properties": {
2628
+ "id": {
2629
+ "type": "integer",
2630
+ "description": "Идентификатор правила планового закрытия заявки",
2631
+ "format": "int32",
2632
+ "example": 101
2633
+ }
2634
+ },
2635
+ "additionalProperties": false,
2636
+ "description": "Результат добавления правил планового закрытия заявки"
2637
+ },
2638
+ "SLACriticalityAddData": {
2639
+ "required": [
2640
+ "color",
2641
+ "isDefault",
2642
+ "name"
2643
+ ],
2644
+ "type": "object",
2645
+ "properties": {
2646
+ "color": {
2647
+ "maxLength": 7,
2648
+ "minLength": 0,
2649
+ "type": "string"
2650
+ },
2651
+ "name": {
2652
+ "maxLength": 128,
2653
+ "minLength": 0,
2654
+ "type": "string"
2655
+ },
2656
+ "isDefault": {
2657
+ "type": "boolean"
2658
+ },
2659
+ "sortOrder": {
2660
+ "type": "integer",
2661
+ "format": "int32",
2662
+ "nullable": true
2663
+ },
2664
+ "erpID": {
2665
+ "maxLength": 64,
2666
+ "minLength": 0,
2667
+ "type": "string",
2668
+ "nullable": true
2669
+ }
2670
+ },
2671
+ "additionalProperties": false
2672
+ },
2673
+ "SLACriticalityUpdateData": {
2674
+ "required": [
2675
+ "color",
2676
+ "isDefault",
2677
+ "name"
2678
+ ],
2679
+ "type": "object",
2680
+ "properties": {
2681
+ "color": {
2682
+ "maxLength": 7,
2683
+ "minLength": 0,
2684
+ "type": "string"
2685
+ },
2686
+ "name": {
2687
+ "maxLength": 128,
2688
+ "minLength": 0,
2689
+ "type": "string"
2690
+ },
2691
+ "isDefault": {
2692
+ "type": "boolean"
2693
+ },
2694
+ "sortOrder": {
2695
+ "type": "integer",
2696
+ "format": "int32",
2697
+ "nullable": true
2698
+ },
2699
+ "erpID": {
2700
+ "maxLength": 64,
2701
+ "minLength": 0,
2702
+ "type": "string",
2703
+ "nullable": true
2704
+ },
2705
+ "id": {
2706
+ "type": "integer",
2707
+ "format": "int32"
2708
+ }
2709
+ },
2710
+ "additionalProperties": false
2711
+ },
2712
+ "SLADeadlineRuleAttributeDeadlineRuleAttributeData": {
2713
+ "required": [
2714
+ "attributeID",
2715
+ "attrNumbValue"
2716
+ ],
2717
+ "type": "object",
2718
+ "properties": {
2719
+ "attributeID": {
2720
+ "maximum": 255,
2721
+ "minimum": 1,
2722
+ "type": "integer",
2723
+ "format": "int32"
2724
+ },
2725
+ "attrNumbValue": {
2726
+ "maximum": 2147483647,
2727
+ "minimum": 1,
2728
+ "type": "integer",
2729
+ "format": "int32"
2730
+ }
2731
+ },
2732
+ "additionalProperties": false
2733
+ },
2734
+ "SLADeadlineRuleDeadlineRuleAddData": {
2735
+ "required": [
2736
+ "name",
2737
+ "runtime",
2738
+ "scheduleRuleID"
2739
+ ],
2740
+ "type": "object",
2741
+ "properties": {
2742
+ "name": {
2743
+ "maxLength": 64,
2744
+ "minLength": 0,
2745
+ "type": "string"
2746
+ },
2747
+ "scheduleRuleID": {
2748
+ "maximum": 32767,
2749
+ "minimum": 1,
2750
+ "type": "integer",
2751
+ "format": "int32"
2752
+ },
2753
+ "isActive": {
2754
+ "type": "boolean"
2755
+ },
2756
+ "runtime": {
2757
+ "minimum": 0,
2758
+ "type": "number",
2759
+ "format": "double"
2760
+ }
2761
+ },
2762
+ "additionalProperties": false
2763
+ },
2764
+ "SLADeadlineRuleDeadlineRuleUpdateData": {
2765
+ "required": [
2766
+ "id",
2767
+ "name",
2768
+ "runtime",
2769
+ "scheduleRuleID"
2770
+ ],
2771
+ "type": "object",
2772
+ "properties": {
2773
+ "id": {
2774
+ "maximum": 32767,
2775
+ "minimum": 1,
2776
+ "type": "integer",
2777
+ "format": "int32"
2778
+ },
2779
+ "name": {
2780
+ "maxLength": 64,
2781
+ "minLength": 0,
2782
+ "type": "string"
2783
+ },
2784
+ "scheduleRuleID": {
2785
+ "maximum": 32767,
2786
+ "minimum": 1,
2787
+ "type": "integer",
2788
+ "format": "int32"
2789
+ },
2790
+ "isActive": {
2791
+ "type": "boolean"
2792
+ },
2793
+ "runtime": {
2794
+ "minimum": 0,
2795
+ "type": "number",
2796
+ "format": "double"
2797
+ }
2798
+ },
2799
+ "additionalProperties": false
2800
+ }
2801
+ },
2802
+ "securitySchemes": {
2803
+ "Bearer": {
2804
+ "type": "http",
2805
+ "description": "Введите токен для авторизации",
2806
+ "scheme": "Bearer",
2807
+ "bearerFormat": "JWT"
2808
+ }
2809
+ }
2810
+ },
2811
+ "tags": [
2812
+ {
2813
+ "name": "Attributes",
2814
+ "description": "Контроллер, управляющий атрибутами SLA"
2815
+ },
2816
+ {
2817
+ "name": "Criticalities",
2818
+ "description": "Контроллер, управляющий критичностями"
2819
+ },
2820
+ {
2821
+ "name": "DeadlineRules",
2822
+ "description": "Контроллер управления правилами планового закрытия заявки"
2823
+ },
2824
+ {
2825
+ "name": "Attributes",
2826
+ "description": "Контроллер, управляющий атрибутами SLA"
2827
+ },
2828
+ {
2829
+ "name": "Criticalities",
2830
+ "description": "Контроллер, управляющий критичностями"
2831
+ },
2832
+ {
2833
+ "name": "DeadlineRules",
2834
+ "description": "Контроллер управления правилами планового закрытия заявки"
2835
+ }
2836
+ ]
2837
+ }