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