@hubex/mcp 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +54 -0
- package/CONNECTING.md +260 -0
- package/README.md +266 -0
- package/dist/auth.js +226 -0
- package/dist/config.js +120 -0
- package/dist/generated/manifest.js +3643 -0
- package/dist/guides/field-notes.json +27 -0
- package/dist/guides/loader.js +32 -0
- package/dist/guides/service-map.js +6 -0
- package/dist/http.js +93 -0
- package/dist/index/store.js +134 -0
- package/dist/index/types.js +1 -0
- package/dist/index.js +20 -0
- package/dist/paths.js +20 -0
- package/dist/pii/fields.js +100 -0
- package/dist/pii/mask.js +50 -0
- package/dist/pii/strategies.js +88 -0
- package/dist/schema/build-index.js +67 -0
- package/dist/schema/deref.js +87 -0
- package/dist/schema/describe.js +65 -0
- package/dist/server.js +62 -0
- package/dist/token-prompt.js +41 -0
- package/dist/tools/curated.js +151 -0
- package/dist/tools/discovery.js +187 -0
- package/dist/tools/guides.js +126 -0
- package/dist/tools/registry.js +37 -0
- package/dist/tools/request.js +170 -0
- package/dist/tools/types.js +1 -0
- package/docs/guides/assets.md +334 -0
- package/docs/guides/attributes.md +125 -0
- package/docs/guides/checklisttemplates.md +154 -0
- package/docs/guides/companies.md +57 -0
- package/docs/guides/dictionaries.md +64 -0
- package/docs/guides/lifecycle.md +263 -0
- package/docs/guides/materials.md +135 -0
- package/docs/guides/notifications.md +184 -0
- package/docs/guides/roles.md +125 -0
- package/docs/guides/sla.md +130 -0
- package/docs/guides/start.md +67 -0
- package/docs/guides/taskchecklists.md +149 -0
- package/docs/guides/taskcreate.md +260 -0
- package/docs/guides/taskedit.md +277 -0
- package/docs/guides/tasktypes.md +156 -0
- package/docs/guides/users.md +71 -0
- package/generated/index.dev.json +18776 -0
- package/generated/index.prod.json +18858 -0
- package/package.json +48 -0
- package/swagger/dev/ADM.json +27777 -0
- package/swagger/dev/AUTH.json +1739 -0
- package/swagger/dev/AUTHN.json +1250 -0
- package/swagger/dev/AUTHZ.json +1404 -0
- package/swagger/dev/CM.json +309 -0
- package/swagger/dev/COMMON.json +6543 -0
- package/swagger/dev/ES.json +28029 -0
- package/swagger/dev/EXPORT.json +4575 -0
- package/swagger/dev/IMPORT.json +1479 -0
- package/swagger/dev/LIC.json +224 -0
- package/swagger/dev/MSG.json +7883 -0
- package/swagger/dev/NEWS.json +348 -0
- package/swagger/dev/PA.json +5981 -0
- package/swagger/dev/PMP.json +3196 -0
- package/swagger/dev/PROXY.json +416 -0
- package/swagger/dev/REPORT.json +3921 -0
- package/swagger/dev/SC.json +3771 -0
- package/swagger/dev/SLA.json +2837 -0
- package/swagger/dev/TSTG.json +4981 -0
- package/swagger/dev/UI.json +4720 -0
- package/swagger/dev/WH.json +16796 -0
- package/swagger/dev/WORK.json +36024 -0
- package/swagger/dev/WSP.json +1612 -0
- package/swagger/prod/ADM.json +27777 -0
- package/swagger/prod/AUTH.json +1308 -0
- package/swagger/prod/AUTHN.json +2710 -0
- package/swagger/prod/AUTHZ.json +896 -0
- package/swagger/prod/CM.json +162 -0
- package/swagger/prod/COMMON.json +4910 -0
- package/swagger/prod/ES.json +28029 -0
- package/swagger/prod/EXPORT.json +3091 -0
- package/swagger/prod/LIC.json +123 -0
- package/swagger/prod/MSG.json +6239 -0
- package/swagger/prod/NEWS.json +295 -0
- package/swagger/prod/PA.json +5123 -0
- package/swagger/prod/PMP.json +2978 -0
- package/swagger/prod/PROXY.json +250 -0
- package/swagger/prod/REPORT.json +3729 -0
- package/swagger/prod/SC.json +3771 -0
- package/swagger/prod/SLA.json +2201 -0
- package/swagger/prod/TSTG.json +4220 -0
- package/swagger/prod/UI.json +3879 -0
- package/swagger/prod/WH.json +16730 -0
- package/swagger/prod/WORK.json +35994 -0
- package/swagger/prod/WSP.json +1468 -0
|
@@ -0,0 +1,1468 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "API for work schedule managing for HubEx",
|
|
5
|
+
"description": "Service offers various methods for managing schedule rules and their corresponding attributes.",
|
|
6
|
+
"contact": {
|
|
7
|
+
"name": "SmartService Backend Team",
|
|
8
|
+
"email": "fmbackend@melston.ru"
|
|
9
|
+
},
|
|
10
|
+
"version": "v1.0.0.0"
|
|
11
|
+
},
|
|
12
|
+
"paths": {
|
|
13
|
+
"/ScheduleRules": {
|
|
14
|
+
"get": {
|
|
15
|
+
"tags": [
|
|
16
|
+
"ScheduleRules"
|
|
17
|
+
],
|
|
18
|
+
"summary": "Возвращает список доступных графиков рабочего времени",
|
|
19
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
20
|
+
"parameters": [
|
|
21
|
+
{
|
|
22
|
+
"name": "Authorization",
|
|
23
|
+
"in": "header",
|
|
24
|
+
"description": "Bearer",
|
|
25
|
+
"required": true,
|
|
26
|
+
"schema": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Range",
|
|
32
|
+
"in": "header",
|
|
33
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "offset",
|
|
40
|
+
"in": "query",
|
|
41
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
42
|
+
"schema": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "fetch",
|
|
48
|
+
"in": "query",
|
|
49
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
50
|
+
"schema": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"responses": {
|
|
56
|
+
"200": {
|
|
57
|
+
"description": "OK",
|
|
58
|
+
"content": {
|
|
59
|
+
"text/plain": {
|
|
60
|
+
"schema": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"additionalProperties": {
|
|
63
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.ScheduleRules.ListResult"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"application/json": {
|
|
68
|
+
"schema": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"additionalProperties": {
|
|
71
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.ScheduleRules.ListResult"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"text/json": {
|
|
76
|
+
"schema": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"additionalProperties": {
|
|
79
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.ScheduleRules.ListResult"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"401": {
|
|
86
|
+
"description": "Unauthorized"
|
|
87
|
+
},
|
|
88
|
+
"403": {
|
|
89
|
+
"description": "Forbidden"
|
|
90
|
+
},
|
|
91
|
+
"206": {
|
|
92
|
+
"description": "PartialContent",
|
|
93
|
+
"headers": {
|
|
94
|
+
"Content-Range": {
|
|
95
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
96
|
+
"schema": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"post": {
|
|
105
|
+
"tags": [
|
|
106
|
+
"ScheduleRules"
|
|
107
|
+
],
|
|
108
|
+
"summary": "Создаёт ГРВ",
|
|
109
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
110
|
+
"parameters": [
|
|
111
|
+
{
|
|
112
|
+
"name": "Authorization",
|
|
113
|
+
"in": "header",
|
|
114
|
+
"description": "Bearer",
|
|
115
|
+
"required": true,
|
|
116
|
+
"schema": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "Range",
|
|
122
|
+
"in": "header",
|
|
123
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
124
|
+
"schema": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "offset",
|
|
130
|
+
"in": "query",
|
|
131
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
132
|
+
"schema": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "fetch",
|
|
138
|
+
"in": "query",
|
|
139
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
140
|
+
"schema": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"requestBody": {
|
|
146
|
+
"description": "данные для генерации ГРВ",
|
|
147
|
+
"content": {
|
|
148
|
+
"application/json-patch+json": {
|
|
149
|
+
"schema": {
|
|
150
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleCreateDto"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"application/json": {
|
|
154
|
+
"schema": {
|
|
155
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleCreateDto"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"text/json": {
|
|
159
|
+
"schema": {
|
|
160
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleCreateDto"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"application/*+json": {
|
|
164
|
+
"schema": {
|
|
165
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleCreateDto"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"responses": {
|
|
171
|
+
"201": {
|
|
172
|
+
"description": "Created",
|
|
173
|
+
"content": {
|
|
174
|
+
"text/plain": {
|
|
175
|
+
"schema": {
|
|
176
|
+
"type": "integer",
|
|
177
|
+
"format": "int32"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"application/json": {
|
|
181
|
+
"schema": {
|
|
182
|
+
"type": "integer",
|
|
183
|
+
"format": "int32"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"text/json": {
|
|
187
|
+
"schema": {
|
|
188
|
+
"type": "integer",
|
|
189
|
+
"format": "int32"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"401": {
|
|
195
|
+
"description": "Unauthorized"
|
|
196
|
+
},
|
|
197
|
+
"403": {
|
|
198
|
+
"description": "Forbidden"
|
|
199
|
+
},
|
|
200
|
+
"206": {
|
|
201
|
+
"description": "PartialContent",
|
|
202
|
+
"headers": {
|
|
203
|
+
"Content-Range": {
|
|
204
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
205
|
+
"schema": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"/ScheduleRules/preview": {
|
|
215
|
+
"post": {
|
|
216
|
+
"tags": [
|
|
217
|
+
"ScheduleRules"
|
|
218
|
+
],
|
|
219
|
+
"summary": "Возвращает ГРВ для предпросмотра",
|
|
220
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
221
|
+
"parameters": [
|
|
222
|
+
{
|
|
223
|
+
"name": "Authorization",
|
|
224
|
+
"in": "header",
|
|
225
|
+
"description": "Bearer",
|
|
226
|
+
"required": true,
|
|
227
|
+
"schema": {
|
|
228
|
+
"type": "string"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "Range",
|
|
233
|
+
"in": "header",
|
|
234
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
235
|
+
"schema": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "offset",
|
|
241
|
+
"in": "query",
|
|
242
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
243
|
+
"schema": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "fetch",
|
|
249
|
+
"in": "query",
|
|
250
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
251
|
+
"schema": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"requestBody": {
|
|
257
|
+
"description": "данные для генерации предпросмотра ГРВ",
|
|
258
|
+
"content": {
|
|
259
|
+
"application/json-patch+json": {
|
|
260
|
+
"schema": {
|
|
261
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleExtendDto"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"application/json": {
|
|
265
|
+
"schema": {
|
|
266
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleExtendDto"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"text/json": {
|
|
270
|
+
"schema": {
|
|
271
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleExtendDto"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"application/*+json": {
|
|
275
|
+
"schema": {
|
|
276
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleExtendDto"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"responses": {
|
|
282
|
+
"201": {
|
|
283
|
+
"description": "Created",
|
|
284
|
+
"content": {
|
|
285
|
+
"text/plain": {
|
|
286
|
+
"schema": {
|
|
287
|
+
"type": "array",
|
|
288
|
+
"items": {
|
|
289
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleOccurrenceDto"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"application/json": {
|
|
294
|
+
"schema": {
|
|
295
|
+
"type": "array",
|
|
296
|
+
"items": {
|
|
297
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleOccurrenceDto"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"text/json": {
|
|
302
|
+
"schema": {
|
|
303
|
+
"type": "array",
|
|
304
|
+
"items": {
|
|
305
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleOccurrenceDto"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"401": {
|
|
312
|
+
"description": "Unauthorized"
|
|
313
|
+
},
|
|
314
|
+
"403": {
|
|
315
|
+
"description": "Forbidden"
|
|
316
|
+
},
|
|
317
|
+
"206": {
|
|
318
|
+
"description": "PartialContent",
|
|
319
|
+
"headers": {
|
|
320
|
+
"Content-Range": {
|
|
321
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
322
|
+
"schema": {
|
|
323
|
+
"type": "string"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"/ScheduleRules/{id}": {
|
|
332
|
+
"get": {
|
|
333
|
+
"tags": [
|
|
334
|
+
"ScheduleRules"
|
|
335
|
+
],
|
|
336
|
+
"summary": "Возвращает ГРВ",
|
|
337
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
338
|
+
"parameters": [
|
|
339
|
+
{
|
|
340
|
+
"name": "id",
|
|
341
|
+
"in": "path",
|
|
342
|
+
"description": "ГРВ id",
|
|
343
|
+
"required": true,
|
|
344
|
+
"schema": {
|
|
345
|
+
"type": "integer",
|
|
346
|
+
"format": "int32"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "Authorization",
|
|
351
|
+
"in": "header",
|
|
352
|
+
"description": "Bearer",
|
|
353
|
+
"required": true,
|
|
354
|
+
"schema": {
|
|
355
|
+
"type": "string"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "Range",
|
|
360
|
+
"in": "header",
|
|
361
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
362
|
+
"schema": {
|
|
363
|
+
"type": "string"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "offset",
|
|
368
|
+
"in": "query",
|
|
369
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
370
|
+
"schema": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "fetch",
|
|
376
|
+
"in": "query",
|
|
377
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
378
|
+
"schema": {
|
|
379
|
+
"type": "string"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"responses": {
|
|
384
|
+
"200": {
|
|
385
|
+
"description": "OK",
|
|
386
|
+
"content": {
|
|
387
|
+
"text/plain": {
|
|
388
|
+
"schema": {
|
|
389
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleRuleDto"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"application/json": {
|
|
393
|
+
"schema": {
|
|
394
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleRuleDto"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"text/json": {
|
|
398
|
+
"schema": {
|
|
399
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleRuleDto"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"401": {
|
|
405
|
+
"description": "Unauthorized"
|
|
406
|
+
},
|
|
407
|
+
"403": {
|
|
408
|
+
"description": "Forbidden"
|
|
409
|
+
},
|
|
410
|
+
"206": {
|
|
411
|
+
"description": "PartialContent",
|
|
412
|
+
"headers": {
|
|
413
|
+
"Content-Range": {
|
|
414
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
415
|
+
"schema": {
|
|
416
|
+
"type": "string"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"put": {
|
|
424
|
+
"tags": [
|
|
425
|
+
"ScheduleRules"
|
|
426
|
+
],
|
|
427
|
+
"summary": "Меняет ГРВ",
|
|
428
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
429
|
+
"parameters": [
|
|
430
|
+
{
|
|
431
|
+
"name": "id",
|
|
432
|
+
"in": "path",
|
|
433
|
+
"description": "ГРВ id",
|
|
434
|
+
"required": true,
|
|
435
|
+
"schema": {
|
|
436
|
+
"type": "integer",
|
|
437
|
+
"format": "int32"
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"name": "Authorization",
|
|
442
|
+
"in": "header",
|
|
443
|
+
"description": "Bearer",
|
|
444
|
+
"required": true,
|
|
445
|
+
"schema": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "Range",
|
|
451
|
+
"in": "header",
|
|
452
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
453
|
+
"schema": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "offset",
|
|
459
|
+
"in": "query",
|
|
460
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
461
|
+
"schema": {
|
|
462
|
+
"type": "string"
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "fetch",
|
|
467
|
+
"in": "query",
|
|
468
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
469
|
+
"schema": {
|
|
470
|
+
"type": "string"
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
],
|
|
474
|
+
"requestBody": {
|
|
475
|
+
"description": "данные для генерации ГРВ",
|
|
476
|
+
"content": {
|
|
477
|
+
"application/json-patch+json": {
|
|
478
|
+
"schema": {
|
|
479
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleUpdateDto"
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
"application/json": {
|
|
483
|
+
"schema": {
|
|
484
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleUpdateDto"
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"text/json": {
|
|
488
|
+
"schema": {
|
|
489
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleUpdateDto"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"application/*+json": {
|
|
493
|
+
"schema": {
|
|
494
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleUpdateDto"
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"responses": {
|
|
500
|
+
"202": {
|
|
501
|
+
"description": "Accepted"
|
|
502
|
+
},
|
|
503
|
+
"401": {
|
|
504
|
+
"description": "Unauthorized"
|
|
505
|
+
},
|
|
506
|
+
"403": {
|
|
507
|
+
"description": "Forbidden"
|
|
508
|
+
},
|
|
509
|
+
"206": {
|
|
510
|
+
"description": "PartialContent",
|
|
511
|
+
"headers": {
|
|
512
|
+
"Content-Range": {
|
|
513
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
514
|
+
"schema": {
|
|
515
|
+
"type": "string"
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"delete": {
|
|
523
|
+
"tags": [
|
|
524
|
+
"ScheduleRules"
|
|
525
|
+
],
|
|
526
|
+
"summary": "Удаляет ГРВ",
|
|
527
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
528
|
+
"parameters": [
|
|
529
|
+
{
|
|
530
|
+
"name": "id",
|
|
531
|
+
"in": "path",
|
|
532
|
+
"description": "ГРВ id",
|
|
533
|
+
"required": true,
|
|
534
|
+
"schema": {
|
|
535
|
+
"type": "integer",
|
|
536
|
+
"format": "int32"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "Authorization",
|
|
541
|
+
"in": "header",
|
|
542
|
+
"description": "Bearer",
|
|
543
|
+
"required": true,
|
|
544
|
+
"schema": {
|
|
545
|
+
"type": "string"
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "Range",
|
|
550
|
+
"in": "header",
|
|
551
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
552
|
+
"schema": {
|
|
553
|
+
"type": "string"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "offset",
|
|
558
|
+
"in": "query",
|
|
559
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
560
|
+
"schema": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"name": "fetch",
|
|
566
|
+
"in": "query",
|
|
567
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
568
|
+
"schema": {
|
|
569
|
+
"type": "string"
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
"responses": {
|
|
574
|
+
"202": {
|
|
575
|
+
"description": "Accepted"
|
|
576
|
+
},
|
|
577
|
+
"401": {
|
|
578
|
+
"description": "Unauthorized"
|
|
579
|
+
},
|
|
580
|
+
"403": {
|
|
581
|
+
"description": "Forbidden"
|
|
582
|
+
},
|
|
583
|
+
"206": {
|
|
584
|
+
"description": "PartialContent",
|
|
585
|
+
"headers": {
|
|
586
|
+
"Content-Range": {
|
|
587
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
588
|
+
"schema": {
|
|
589
|
+
"type": "string"
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"/ScheduleRules/extend/{id}": {
|
|
598
|
+
"put": {
|
|
599
|
+
"tags": [
|
|
600
|
+
"ScheduleRules"
|
|
601
|
+
],
|
|
602
|
+
"summary": "Расширяет ГРВ",
|
|
603
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
604
|
+
"parameters": [
|
|
605
|
+
{
|
|
606
|
+
"name": "id",
|
|
607
|
+
"in": "path",
|
|
608
|
+
"description": "ГРВ id",
|
|
609
|
+
"required": true,
|
|
610
|
+
"schema": {
|
|
611
|
+
"type": "integer",
|
|
612
|
+
"format": "int32"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "Authorization",
|
|
617
|
+
"in": "header",
|
|
618
|
+
"description": "Bearer",
|
|
619
|
+
"required": true,
|
|
620
|
+
"schema": {
|
|
621
|
+
"type": "string"
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"name": "Range",
|
|
626
|
+
"in": "header",
|
|
627
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
628
|
+
"schema": {
|
|
629
|
+
"type": "string"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "offset",
|
|
634
|
+
"in": "query",
|
|
635
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
636
|
+
"schema": {
|
|
637
|
+
"type": "string"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "fetch",
|
|
642
|
+
"in": "query",
|
|
643
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
644
|
+
"schema": {
|
|
645
|
+
"type": "string"
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
],
|
|
649
|
+
"requestBody": {
|
|
650
|
+
"description": "данные для генерации ГРВ",
|
|
651
|
+
"content": {
|
|
652
|
+
"application/json-patch+json": {
|
|
653
|
+
"schema": {
|
|
654
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleExtendDto"
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"application/json": {
|
|
658
|
+
"schema": {
|
|
659
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleExtendDto"
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"text/json": {
|
|
663
|
+
"schema": {
|
|
664
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleExtendDto"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
"application/*+json": {
|
|
668
|
+
"schema": {
|
|
669
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleExtendDto"
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"responses": {
|
|
675
|
+
"202": {
|
|
676
|
+
"description": "Accepted"
|
|
677
|
+
},
|
|
678
|
+
"401": {
|
|
679
|
+
"description": "Unauthorized"
|
|
680
|
+
},
|
|
681
|
+
"403": {
|
|
682
|
+
"description": "Forbidden"
|
|
683
|
+
},
|
|
684
|
+
"206": {
|
|
685
|
+
"description": "PartialContent",
|
|
686
|
+
"headers": {
|
|
687
|
+
"Content-Range": {
|
|
688
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
689
|
+
"schema": {
|
|
690
|
+
"type": "string"
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"/ScheduleRules/holiday": {
|
|
699
|
+
"get": {
|
|
700
|
+
"tags": [
|
|
701
|
+
"ScheduleRules"
|
|
702
|
+
],
|
|
703
|
+
"summary": "Возвращает График праздничных дней",
|
|
704
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
705
|
+
"parameters": [
|
|
706
|
+
{
|
|
707
|
+
"name": "year",
|
|
708
|
+
"in": "query",
|
|
709
|
+
"description": "Год, за который требуется получить график праздничных дней",
|
|
710
|
+
"schema": {
|
|
711
|
+
"type": "string"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"name": "Authorization",
|
|
716
|
+
"in": "header",
|
|
717
|
+
"description": "Bearer",
|
|
718
|
+
"required": true,
|
|
719
|
+
"schema": {
|
|
720
|
+
"type": "string"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "Range",
|
|
725
|
+
"in": "header",
|
|
726
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
727
|
+
"schema": {
|
|
728
|
+
"type": "string"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "offset",
|
|
733
|
+
"in": "query",
|
|
734
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
735
|
+
"schema": {
|
|
736
|
+
"type": "string"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "fetch",
|
|
741
|
+
"in": "query",
|
|
742
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
743
|
+
"schema": {
|
|
744
|
+
"type": "string"
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
],
|
|
748
|
+
"responses": {
|
|
749
|
+
"200": {
|
|
750
|
+
"description": "OK",
|
|
751
|
+
"content": {
|
|
752
|
+
"text/plain": {
|
|
753
|
+
"schema": {
|
|
754
|
+
"type": "object",
|
|
755
|
+
"additionalProperties": {
|
|
756
|
+
"type": "array",
|
|
757
|
+
"items": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"format": "date-time"
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
"application/json": {
|
|
765
|
+
"schema": {
|
|
766
|
+
"type": "object",
|
|
767
|
+
"additionalProperties": {
|
|
768
|
+
"type": "array",
|
|
769
|
+
"items": {
|
|
770
|
+
"type": "string",
|
|
771
|
+
"format": "date-time"
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"text/json": {
|
|
777
|
+
"schema": {
|
|
778
|
+
"type": "object",
|
|
779
|
+
"additionalProperties": {
|
|
780
|
+
"type": "array",
|
|
781
|
+
"items": {
|
|
782
|
+
"type": "string",
|
|
783
|
+
"format": "date-time"
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"400": {
|
|
791
|
+
"description": "Bad Request",
|
|
792
|
+
"content": {
|
|
793
|
+
"text/plain": {
|
|
794
|
+
"schema": {
|
|
795
|
+
"type": "array",
|
|
796
|
+
"items": {
|
|
797
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"application/json": {
|
|
802
|
+
"schema": {
|
|
803
|
+
"type": "array",
|
|
804
|
+
"items": {
|
|
805
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"text/json": {
|
|
810
|
+
"schema": {
|
|
811
|
+
"type": "array",
|
|
812
|
+
"items": {
|
|
813
|
+
"$ref": "#/components/schemas/SmartService.Common.ExceptionHandling.Models.ErrorModel"
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
"401": {
|
|
820
|
+
"description": "Unauthorized"
|
|
821
|
+
},
|
|
822
|
+
"403": {
|
|
823
|
+
"description": "Forbidden"
|
|
824
|
+
},
|
|
825
|
+
"206": {
|
|
826
|
+
"description": "PartialContent",
|
|
827
|
+
"headers": {
|
|
828
|
+
"Content-Range": {
|
|
829
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
830
|
+
"schema": {
|
|
831
|
+
"type": "string"
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"/WorkSchedules": {
|
|
840
|
+
"get": {
|
|
841
|
+
"tags": [
|
|
842
|
+
"WorkSchedules"
|
|
843
|
+
],
|
|
844
|
+
"summary": "Возвращает график рабочего времени на заданный период",
|
|
845
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
846
|
+
"parameters": [
|
|
847
|
+
{
|
|
848
|
+
"name": "Authorization",
|
|
849
|
+
"in": "header",
|
|
850
|
+
"description": "Bearer",
|
|
851
|
+
"required": true,
|
|
852
|
+
"schema": {
|
|
853
|
+
"type": "string"
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "Range",
|
|
858
|
+
"in": "header",
|
|
859
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
860
|
+
"schema": {
|
|
861
|
+
"type": "string"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "offset",
|
|
866
|
+
"in": "query",
|
|
867
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
868
|
+
"schema": {
|
|
869
|
+
"type": "string"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "fetch",
|
|
874
|
+
"in": "query",
|
|
875
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
876
|
+
"schema": {
|
|
877
|
+
"type": "string"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"name": "validTill",
|
|
882
|
+
"in": "query",
|
|
883
|
+
"description": "Дата окончания периода графика работы пользователя",
|
|
884
|
+
"schema": {
|
|
885
|
+
"type": "datetime",
|
|
886
|
+
"format": "UTC ISO-8601",
|
|
887
|
+
"default": null
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "validFrom",
|
|
892
|
+
"in": "query",
|
|
893
|
+
"description": "Дата начала периода графика работы пользователя",
|
|
894
|
+
"schema": {
|
|
895
|
+
"type": "datetime",
|
|
896
|
+
"format": "UTC ISO-8601",
|
|
897
|
+
"default": null
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"name": "scheduleRuleID",
|
|
902
|
+
"in": "query",
|
|
903
|
+
"description": "Идентификатор правила графика рабочего времени",
|
|
904
|
+
"schema": {
|
|
905
|
+
"type": "int16",
|
|
906
|
+
"default": null
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
],
|
|
910
|
+
"responses": {
|
|
911
|
+
"200": {
|
|
912
|
+
"description": "OK",
|
|
913
|
+
"content": {
|
|
914
|
+
"text/plain": {
|
|
915
|
+
"schema": {
|
|
916
|
+
"type": "object",
|
|
917
|
+
"additionalProperties": {
|
|
918
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.WorkSchedule.WorkScheduleDailyItemResult"
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
"application/json": {
|
|
923
|
+
"schema": {
|
|
924
|
+
"type": "object",
|
|
925
|
+
"additionalProperties": {
|
|
926
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.WorkSchedule.WorkScheduleDailyItemResult"
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
"text/json": {
|
|
931
|
+
"schema": {
|
|
932
|
+
"type": "object",
|
|
933
|
+
"additionalProperties": {
|
|
934
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.WorkSchedule.WorkScheduleDailyItemResult"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"401": {
|
|
941
|
+
"description": "Unauthorized"
|
|
942
|
+
},
|
|
943
|
+
"403": {
|
|
944
|
+
"description": "Forbidden"
|
|
945
|
+
},
|
|
946
|
+
"206": {
|
|
947
|
+
"description": "PartialContent",
|
|
948
|
+
"headers": {
|
|
949
|
+
"Content-Range": {
|
|
950
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
951
|
+
"schema": {
|
|
952
|
+
"type": "string"
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"/WorkSchedules/daily": {
|
|
961
|
+
"get": {
|
|
962
|
+
"tags": [
|
|
963
|
+
"WorkSchedules"
|
|
964
|
+
],
|
|
965
|
+
"summary": "Возвращает график рабочего времени на заданный период по суткам",
|
|
966
|
+
"description": "<br />* Для выполнения данного метода требуется любое из перечисленных полномочий: **ScheduleRulesList**<br />* Метод поддерживает диапазонный запрос через строку или заголовок запроса.",
|
|
967
|
+
"parameters": [
|
|
968
|
+
{
|
|
969
|
+
"name": "Authorization",
|
|
970
|
+
"in": "header",
|
|
971
|
+
"description": "Bearer",
|
|
972
|
+
"required": true,
|
|
973
|
+
"schema": {
|
|
974
|
+
"type": "string"
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "Range",
|
|
979
|
+
"in": "header",
|
|
980
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
981
|
+
"schema": {
|
|
982
|
+
"type": "string"
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"name": "offset",
|
|
987
|
+
"in": "query",
|
|
988
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
989
|
+
"schema": {
|
|
990
|
+
"type": "string"
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "fetch",
|
|
995
|
+
"in": "query",
|
|
996
|
+
"description": "количество эементов, которое необходимо вернуть",
|
|
997
|
+
"schema": {
|
|
998
|
+
"type": "string"
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "validTill",
|
|
1003
|
+
"in": "query",
|
|
1004
|
+
"description": "Дата окончания периода графика работы пользователя",
|
|
1005
|
+
"schema": {
|
|
1006
|
+
"type": "datetime",
|
|
1007
|
+
"format": "UTC ISO-8601",
|
|
1008
|
+
"default": null
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "validFrom",
|
|
1013
|
+
"in": "query",
|
|
1014
|
+
"description": "Дата начала периода графика работы пользователя",
|
|
1015
|
+
"schema": {
|
|
1016
|
+
"type": "datetime",
|
|
1017
|
+
"format": "UTC ISO-8601",
|
|
1018
|
+
"default": null
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"name": "scheduleRuleID",
|
|
1023
|
+
"in": "query",
|
|
1024
|
+
"description": "Идентификатор правила графика рабочего времени",
|
|
1025
|
+
"schema": {
|
|
1026
|
+
"type": "int16",
|
|
1027
|
+
"default": null
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
],
|
|
1031
|
+
"responses": {
|
|
1032
|
+
"200": {
|
|
1033
|
+
"description": "OK",
|
|
1034
|
+
"content": {
|
|
1035
|
+
"text/plain": {
|
|
1036
|
+
"schema": {
|
|
1037
|
+
"type": "object",
|
|
1038
|
+
"additionalProperties": {
|
|
1039
|
+
"type": "array",
|
|
1040
|
+
"items": {
|
|
1041
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.WorkSchedule.WorkScheduleDailyItemResult"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
"application/json": {
|
|
1047
|
+
"schema": {
|
|
1048
|
+
"type": "object",
|
|
1049
|
+
"additionalProperties": {
|
|
1050
|
+
"type": "array",
|
|
1051
|
+
"items": {
|
|
1052
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.WorkSchedule.WorkScheduleDailyItemResult"
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
"text/json": {
|
|
1058
|
+
"schema": {
|
|
1059
|
+
"type": "object",
|
|
1060
|
+
"additionalProperties": {
|
|
1061
|
+
"type": "array",
|
|
1062
|
+
"items": {
|
|
1063
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Results.WorkSchedule.WorkScheduleDailyItemResult"
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
"401": {
|
|
1071
|
+
"description": "Unauthorized"
|
|
1072
|
+
},
|
|
1073
|
+
"403": {
|
|
1074
|
+
"description": "Forbidden"
|
|
1075
|
+
},
|
|
1076
|
+
"206": {
|
|
1077
|
+
"description": "PartialContent",
|
|
1078
|
+
"headers": {
|
|
1079
|
+
"Content-Range": {
|
|
1080
|
+
"description": "items=FROM-TILL/OF , где FROM - начальный элемент (включая), TILL - конечный элемент (включая) OF - общее количество элементов",
|
|
1081
|
+
"schema": {
|
|
1082
|
+
"type": "string"
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
},
|
|
1091
|
+
"components": {
|
|
1092
|
+
"schemas": {
|
|
1093
|
+
"HubEx.Service.WSP.Api.Dto.ScheduleCreateDto": {
|
|
1094
|
+
"type": "object",
|
|
1095
|
+
"properties": {
|
|
1096
|
+
"from": {
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
"format": "date-time"
|
|
1099
|
+
},
|
|
1100
|
+
"till": {
|
|
1101
|
+
"type": "string",
|
|
1102
|
+
"format": "date-time"
|
|
1103
|
+
},
|
|
1104
|
+
"considerPublicHolidays": {
|
|
1105
|
+
"type": "boolean"
|
|
1106
|
+
},
|
|
1107
|
+
"shortageHoursBeforeHoliday": {
|
|
1108
|
+
"type": "integer",
|
|
1109
|
+
"format": "int32"
|
|
1110
|
+
},
|
|
1111
|
+
"rules": {
|
|
1112
|
+
"type": "array",
|
|
1113
|
+
"items": {
|
|
1114
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto+Rule"
|
|
1115
|
+
},
|
|
1116
|
+
"nullable": true
|
|
1117
|
+
},
|
|
1118
|
+
"overridings": {
|
|
1119
|
+
"type": "array",
|
|
1120
|
+
"items": {
|
|
1121
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto"
|
|
1122
|
+
},
|
|
1123
|
+
"nullable": true
|
|
1124
|
+
},
|
|
1125
|
+
"name": {
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"nullable": true
|
|
1128
|
+
},
|
|
1129
|
+
"description": {
|
|
1130
|
+
"type": "string",
|
|
1131
|
+
"nullable": true
|
|
1132
|
+
},
|
|
1133
|
+
"isDefault": {
|
|
1134
|
+
"type": "boolean"
|
|
1135
|
+
},
|
|
1136
|
+
"scheduleTypeID": {
|
|
1137
|
+
"type": "integer",
|
|
1138
|
+
"format": "int32",
|
|
1139
|
+
"nullable": true
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
"additionalProperties": false
|
|
1143
|
+
},
|
|
1144
|
+
"HubEx.Service.WSP.Api.Dto.ScheduleExtendDto": {
|
|
1145
|
+
"type": "object",
|
|
1146
|
+
"properties": {
|
|
1147
|
+
"from": {
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"format": "date-time"
|
|
1150
|
+
},
|
|
1151
|
+
"till": {
|
|
1152
|
+
"type": "string",
|
|
1153
|
+
"format": "date-time"
|
|
1154
|
+
},
|
|
1155
|
+
"considerPublicHolidays": {
|
|
1156
|
+
"type": "boolean"
|
|
1157
|
+
},
|
|
1158
|
+
"shortageHoursBeforeHoliday": {
|
|
1159
|
+
"type": "integer",
|
|
1160
|
+
"format": "int32"
|
|
1161
|
+
},
|
|
1162
|
+
"rules": {
|
|
1163
|
+
"type": "array",
|
|
1164
|
+
"items": {
|
|
1165
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto+Rule"
|
|
1166
|
+
},
|
|
1167
|
+
"nullable": true
|
|
1168
|
+
},
|
|
1169
|
+
"overridings": {
|
|
1170
|
+
"type": "array",
|
|
1171
|
+
"items": {
|
|
1172
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto"
|
|
1173
|
+
},
|
|
1174
|
+
"nullable": true
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
"additionalProperties": false
|
|
1178
|
+
},
|
|
1179
|
+
"HubEx.Service.WSP.Api.Dto.SchedulePersistDto": {
|
|
1180
|
+
"type": "object",
|
|
1181
|
+
"properties": {
|
|
1182
|
+
"rules": {
|
|
1183
|
+
"type": "array",
|
|
1184
|
+
"items": {
|
|
1185
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto+Rule"
|
|
1186
|
+
},
|
|
1187
|
+
"nullable": true
|
|
1188
|
+
},
|
|
1189
|
+
"overridings": {
|
|
1190
|
+
"type": "array",
|
|
1191
|
+
"items": {
|
|
1192
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto"
|
|
1193
|
+
},
|
|
1194
|
+
"nullable": true
|
|
1195
|
+
}
|
|
1196
|
+
},
|
|
1197
|
+
"additionalProperties": false
|
|
1198
|
+
},
|
|
1199
|
+
"HubEx.Service.WSP.Api.Dto.ScheduleRuleDto": {
|
|
1200
|
+
"type": "object",
|
|
1201
|
+
"properties": {
|
|
1202
|
+
"name": {
|
|
1203
|
+
"type": "string",
|
|
1204
|
+
"nullable": true
|
|
1205
|
+
},
|
|
1206
|
+
"description": {
|
|
1207
|
+
"type": "string",
|
|
1208
|
+
"nullable": true
|
|
1209
|
+
},
|
|
1210
|
+
"scheduleTypeID": {
|
|
1211
|
+
"type": "integer",
|
|
1212
|
+
"format": "int32",
|
|
1213
|
+
"nullable": true
|
|
1214
|
+
},
|
|
1215
|
+
"periods": {
|
|
1216
|
+
"type": "array",
|
|
1217
|
+
"items": {
|
|
1218
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.ScheduleRuleDto+Period"
|
|
1219
|
+
},
|
|
1220
|
+
"nullable": true
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
"additionalProperties": false,
|
|
1224
|
+
"description": "ГРВ"
|
|
1225
|
+
},
|
|
1226
|
+
"HubEx.Service.WSP.Api.Dto.ScheduleRuleDto+Period": {
|
|
1227
|
+
"type": "object",
|
|
1228
|
+
"properties": {
|
|
1229
|
+
"from": {
|
|
1230
|
+
"type": "string",
|
|
1231
|
+
"format": "date-time"
|
|
1232
|
+
},
|
|
1233
|
+
"till": {
|
|
1234
|
+
"type": "string",
|
|
1235
|
+
"format": "date-time"
|
|
1236
|
+
},
|
|
1237
|
+
"holidayCalendarID": {
|
|
1238
|
+
"type": "integer",
|
|
1239
|
+
"format": "int32"
|
|
1240
|
+
},
|
|
1241
|
+
"shortageHoursBeforeHoliday": {
|
|
1242
|
+
"type": "integer",
|
|
1243
|
+
"format": "int32"
|
|
1244
|
+
},
|
|
1245
|
+
"model": {
|
|
1246
|
+
"$ref": "#/components/schemas/HubEx.Service.WSP.Api.Dto.SchedulePersistDto"
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
"additionalProperties": false
|
|
1250
|
+
},
|
|
1251
|
+
"HubEx.Service.WSP.Api.Dto.ScheduleUpdateDto": {
|
|
1252
|
+
"type": "object",
|
|
1253
|
+
"properties": {
|
|
1254
|
+
"from": {
|
|
1255
|
+
"type": "string",
|
|
1256
|
+
"format": "date-time"
|
|
1257
|
+
},
|
|
1258
|
+
"till": {
|
|
1259
|
+
"type": "string",
|
|
1260
|
+
"format": "date-time"
|
|
1261
|
+
},
|
|
1262
|
+
"considerPublicHolidays": {
|
|
1263
|
+
"type": "boolean"
|
|
1264
|
+
},
|
|
1265
|
+
"shortageHoursBeforeHoliday": {
|
|
1266
|
+
"type": "integer",
|
|
1267
|
+
"format": "int32"
|
|
1268
|
+
},
|
|
1269
|
+
"rules": {
|
|
1270
|
+
"type": "array",
|
|
1271
|
+
"items": {
|
|
1272
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto+Rule"
|
|
1273
|
+
},
|
|
1274
|
+
"nullable": true
|
|
1275
|
+
},
|
|
1276
|
+
"overridings": {
|
|
1277
|
+
"type": "array",
|
|
1278
|
+
"items": {
|
|
1279
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto"
|
|
1280
|
+
},
|
|
1281
|
+
"nullable": true
|
|
1282
|
+
},
|
|
1283
|
+
"name": {
|
|
1284
|
+
"type": "string",
|
|
1285
|
+
"nullable": true
|
|
1286
|
+
},
|
|
1287
|
+
"description": {
|
|
1288
|
+
"type": "string",
|
|
1289
|
+
"nullable": true
|
|
1290
|
+
},
|
|
1291
|
+
"scheduleTypeID": {
|
|
1292
|
+
"type": "integer",
|
|
1293
|
+
"format": "int32",
|
|
1294
|
+
"nullable": true
|
|
1295
|
+
}
|
|
1296
|
+
},
|
|
1297
|
+
"additionalProperties": false
|
|
1298
|
+
},
|
|
1299
|
+
"HubEx.Service.WSP.Api.Results.ScheduleRules.ListResult": {
|
|
1300
|
+
"type": "object",
|
|
1301
|
+
"properties": {
|
|
1302
|
+
"name": {
|
|
1303
|
+
"type": "string",
|
|
1304
|
+
"description": "Название правила",
|
|
1305
|
+
"nullable": true
|
|
1306
|
+
},
|
|
1307
|
+
"description": {
|
|
1308
|
+
"type": "string",
|
|
1309
|
+
"description": "Описание правила",
|
|
1310
|
+
"nullable": true
|
|
1311
|
+
},
|
|
1312
|
+
"scheduleTypeID": {
|
|
1313
|
+
"type": "integer",
|
|
1314
|
+
"description": "Тип графика",
|
|
1315
|
+
"format": "int32",
|
|
1316
|
+
"nullable": true
|
|
1317
|
+
},
|
|
1318
|
+
"dataFrom": {
|
|
1319
|
+
"type": "string",
|
|
1320
|
+
"description": "Дата старта графика",
|
|
1321
|
+
"format": "date-time"
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
"additionalProperties": false,
|
|
1325
|
+
"description": "Правило графика рабочего времени для списка"
|
|
1326
|
+
},
|
|
1327
|
+
"HubEx.Service.WSP.Api.Results.WorkSchedule.WorkScheduleDailyItemResult": {
|
|
1328
|
+
"type": "object",
|
|
1329
|
+
"properties": {
|
|
1330
|
+
"scheduleRuleID": {
|
|
1331
|
+
"type": "integer",
|
|
1332
|
+
"description": "Идентификатор правила графика рабочего времени",
|
|
1333
|
+
"format": "int32"
|
|
1334
|
+
},
|
|
1335
|
+
"timeFrom": {
|
|
1336
|
+
"type": "string",
|
|
1337
|
+
"description": "Начало работы",
|
|
1338
|
+
"format": "date-time",
|
|
1339
|
+
"nullable": true
|
|
1340
|
+
},
|
|
1341
|
+
"timeTill": {
|
|
1342
|
+
"type": "string",
|
|
1343
|
+
"description": "Окончание работы",
|
|
1344
|
+
"format": "date-time",
|
|
1345
|
+
"nullable": true
|
|
1346
|
+
},
|
|
1347
|
+
"isPublicHoliday": {
|
|
1348
|
+
"type": "boolean",
|
|
1349
|
+
"description": "Признак праздничного дня",
|
|
1350
|
+
"nullable": true
|
|
1351
|
+
},
|
|
1352
|
+
"isNightShift": {
|
|
1353
|
+
"type": "boolean",
|
|
1354
|
+
"description": "Признак ночной смены"
|
|
1355
|
+
},
|
|
1356
|
+
"dateWork": {
|
|
1357
|
+
"type": "string",
|
|
1358
|
+
"description": "Дата работы",
|
|
1359
|
+
"format": "date-time"
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
"additionalProperties": false,
|
|
1363
|
+
"description": "Режим работы"
|
|
1364
|
+
},
|
|
1365
|
+
"HubEx.WSP.Core.Dto.ScheduleDto": {
|
|
1366
|
+
"type": "object",
|
|
1367
|
+
"properties": {
|
|
1368
|
+
"rules": {
|
|
1369
|
+
"type": "array",
|
|
1370
|
+
"items": {
|
|
1371
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto+Rule"
|
|
1372
|
+
},
|
|
1373
|
+
"nullable": true
|
|
1374
|
+
},
|
|
1375
|
+
"isWorking": {
|
|
1376
|
+
"type": "boolean"
|
|
1377
|
+
},
|
|
1378
|
+
"isPublicHoliday": {
|
|
1379
|
+
"type": "boolean"
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
"additionalProperties": false
|
|
1383
|
+
},
|
|
1384
|
+
"HubEx.WSP.Core.Dto.ScheduleDto+Rule": {
|
|
1385
|
+
"type": "object",
|
|
1386
|
+
"properties": {
|
|
1387
|
+
"cron": {
|
|
1388
|
+
"type": "string",
|
|
1389
|
+
"nullable": true
|
|
1390
|
+
},
|
|
1391
|
+
"occurrenceDuration": {
|
|
1392
|
+
"type": "string",
|
|
1393
|
+
"format": "date-span"
|
|
1394
|
+
},
|
|
1395
|
+
"periodicity": {
|
|
1396
|
+
"$ref": "#/components/schemas/HubEx.WSP.Core.Dto.ScheduleDto+Rule+PeriodicityData"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"additionalProperties": false
|
|
1400
|
+
},
|
|
1401
|
+
"HubEx.WSP.Core.Dto.ScheduleDto+Rule+PeriodicityData": {
|
|
1402
|
+
"type": "object",
|
|
1403
|
+
"properties": {
|
|
1404
|
+
"repeatCnt": {
|
|
1405
|
+
"type": "integer",
|
|
1406
|
+
"format": "int32"
|
|
1407
|
+
},
|
|
1408
|
+
"skip": {
|
|
1409
|
+
"type": "string",
|
|
1410
|
+
"format": "date-span"
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
"additionalProperties": false
|
|
1414
|
+
},
|
|
1415
|
+
"HubEx.WSP.Core.Dto.ScheduleOccurrenceDto": {
|
|
1416
|
+
"type": "object",
|
|
1417
|
+
"properties": {
|
|
1418
|
+
"start": {
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
"format": "date-time"
|
|
1421
|
+
},
|
|
1422
|
+
"duration": {
|
|
1423
|
+
"type": "string",
|
|
1424
|
+
"format": "date-span"
|
|
1425
|
+
},
|
|
1426
|
+
"isWorking": {
|
|
1427
|
+
"type": "boolean"
|
|
1428
|
+
},
|
|
1429
|
+
"isNightShift": {
|
|
1430
|
+
"type": "boolean",
|
|
1431
|
+
"readOnly": true
|
|
1432
|
+
},
|
|
1433
|
+
"isPublicHoliday": {
|
|
1434
|
+
"type": "boolean",
|
|
1435
|
+
"readOnly": true
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"additionalProperties": false
|
|
1439
|
+
},
|
|
1440
|
+
"SmartService.Common.ExceptionHandling.Models.ErrorModel": {
|
|
1441
|
+
"type": "object",
|
|
1442
|
+
"properties": {
|
|
1443
|
+
"traceIdentifier": {
|
|
1444
|
+
"type": "string",
|
|
1445
|
+
"nullable": true
|
|
1446
|
+
},
|
|
1447
|
+
"code": {
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"nullable": true
|
|
1450
|
+
},
|
|
1451
|
+
"message": {
|
|
1452
|
+
"type": "string",
|
|
1453
|
+
"nullable": true
|
|
1454
|
+
},
|
|
1455
|
+
"arguments": {
|
|
1456
|
+
"type": "object",
|
|
1457
|
+
"additionalProperties": {
|
|
1458
|
+
"type": "string",
|
|
1459
|
+
"nullable": true
|
|
1460
|
+
},
|
|
1461
|
+
"nullable": true
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
"additionalProperties": false
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|