@hubex/mcp 0.5.0 → 0.6.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.
@@ -20,8 +20,7 @@
20
20
  "tags": [
21
21
  "ScheduleRules"
22
22
  ],
23
- "summary": "Возвращает список доступных графиков рабочего времени.",
24
- "description": "## Пример запроса:\r\n```text\r\nGET /ScheduleRules\r\nAuthorization: Bearer <access-token>\r\nRange: Offset=0; Fetch=50\r\n```\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"10\": {\r\n \"name\": \"Стандартный график\",\r\n \"description\": \"График работы с 9:00 до 18:00\",\r\n \"scheduleTypeID\": 1,\r\n \"dataFrom\": \"2024-01-01T00:00:00Z\"\r\n }\r\n}\r\n```\r\n \r\n## Пример успешного ответа (206):\r\nТело ответа имеет тот же формат, что и для `200`, но содержит частичный диапазон.\r\n \r\n## Негативные сценарии:\r\n- 204 No Content — графики не найдены.\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
23
+ "summary": "Возвращает список доступных графиков рабочего времени",
25
24
  "parameters": [
26
25
  {
27
26
  "name": "X-Application-ID",
@@ -52,7 +51,7 @@
52
51
  ],
53
52
  "responses": {
54
53
  "200": {
55
- "description": "Список графиков успешно получен.",
54
+ "description": "OK",
56
55
  "content": {
57
56
  "text/plain": {
58
57
  "schema": {
@@ -80,57 +79,19 @@
80
79
  }
81
80
  }
82
81
  },
83
- "206": {
84
- "description": "Возвращена часть списка в пределах диапазона.",
85
- "content": {
86
- "text/plain": {
87
- "schema": {
88
- "type": "object",
89
- "additionalProperties": {
90
- "$ref": "#/components/schemas/ListResult"
91
- }
92
- }
93
- },
94
- "application/json": {
95
- "schema": {
96
- "type": "object",
97
- "additionalProperties": {
98
- "$ref": "#/components/schemas/ListResult"
99
- }
100
- }
101
- },
102
- "text/json": {
103
- "schema": {
104
- "type": "object",
105
- "additionalProperties": {
106
- "$ref": "#/components/schemas/ListResult"
107
- }
108
- }
109
- }
110
- }
111
- },
112
- "204": {
113
- "description": "Графики не найдены."
114
- },
115
82
  "401": {
116
- "description": "Токен отсутствует или некорректен."
83
+ "description": "Unauthorized"
117
84
  },
118
85
  "403": {
119
- "description": "Недостаточно прав."
86
+ "description": "Forbidden"
120
87
  }
121
- },
122
- "security": [
123
- {
124
- "Bearer": [ ]
125
- }
126
- ]
88
+ }
127
89
  },
128
90
  "post": {
129
91
  "tags": [
130
92
  "ScheduleRules"
131
93
  ],
132
- "summary": "Создаёт график рабочего времени.",
133
- "description": "## Пример запроса:\r\n```json\r\nPOST /ScheduleRules\r\nAuthorization: Bearer <access-token>\r\n \r\n{\r\n \"name\": \"Стандартный график\",\r\n \"description\": \"График работы с 9:00 до 18:00\",\r\n \"isDefault\": false,\r\n \"scheduleTypeID\": 1,\r\n \"from\": \"2024-06-01T00:00:00Z\",\r\n \"till\": \"2024-12-31T23:59:59Z\",\r\n \"considerPublicHolidays\": true,\r\n \"shortageHoursBeforeHoliday\": 1,\r\n \"rules\": [\r\n {\r\n \"cron\": \"0 9 * * 1-5\",\r\n \"occurrenceDuration\": \"08:00:00\"\r\n }\r\n ],\r\n \"overridings\": []\r\n}\r\n```\r\n \r\n## Пример успешного ответа (201):\r\n```json\r\n10\r\n```\r\n \r\n## Негативные сценарии:\r\n- 409 Conflict — некорректные данные модели.\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
94
+ "summary": "Создаёт ГРВ",
134
95
  "parameters": [
135
96
  {
136
97
  "name": "X-Application-ID",
@@ -160,7 +121,7 @@
160
121
  }
161
122
  ],
162
123
  "requestBody": {
163
- "description": "Данные для создания графика.",
124
+ "description": "данные для генерации ГРВ",
164
125
  "content": {
165
126
  "application/json-patch+json": {
166
127
  "schema": {
@@ -186,7 +147,7 @@
186
147
  },
187
148
  "responses": {
188
149
  "201": {
189
- "description": "График успешно создан.",
150
+ "description": "Created",
190
151
  "content": {
191
152
  "text/plain": {
192
153
  "schema": {
@@ -208,21 +169,13 @@
208
169
  }
209
170
  }
210
171
  },
211
- "409": {
212
- "description": "Некорректные данные."
213
- },
214
172
  "401": {
215
- "description": "Токен отсутствует или некорректен."
173
+ "description": "Unauthorized"
216
174
  },
217
175
  "403": {
218
- "description": "Недостаточно прав."
176
+ "description": "Forbidden"
219
177
  }
220
- },
221
- "security": [
222
- {
223
- "Bearer": [ ]
224
- }
225
- ]
178
+ }
226
179
  }
227
180
  },
228
181
  "/ScheduleRules/preview": {
@@ -230,8 +183,7 @@
230
183
  "tags": [
231
184
  "ScheduleRules"
232
185
  ],
233
- "summary": "Возвращает предпросмотр графика рабочего времени.",
234
- "description": "## Пример запроса:\r\n```json\r\nPOST /ScheduleRules/preview\r\nAuthorization: Bearer <access-token>\r\n \r\n{\r\n \"from\": \"2024-06-01T00:00:00Z\",\r\n \"till\": \"2024-06-30T23:59:59Z\",\r\n \"considerPublicHolidays\": true,\r\n \"shortageHoursBeforeHoliday\": 1,\r\n \"rules\": [\r\n {\r\n \"cron\": \"0 9 * * 1-5\",\r\n \"occurrenceDuration\": \"08:00:00\"\r\n }\r\n ],\r\n \"overridings\": []\r\n}\r\n```\r\n \r\n## Пример успешного ответа (201):\r\n```json\r\n[\r\n {\r\n \"scheduleRuleID\": 0,\r\n \"timeFrom\": \"2024-06-03T09:00:00Z\",\r\n \"timeTill\": \"2024-06-03T17:00:00Z\",\r\n \"isPublicHoliday\": false,\r\n \"isNightShift\": false,\r\n \"dateWork\": \"2024-06-03T00:00:00Z\"\r\n }\r\n]\r\n```\r\n \r\n## Негативные сценарии:\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
186
+ "summary": "Возвращает ГРВ для предпросмотра",
235
187
  "parameters": [
236
188
  {
237
189
  "name": "X-Application-ID",
@@ -261,7 +213,7 @@
261
213
  }
262
214
  ],
263
215
  "requestBody": {
264
- "description": "Данные для генерации предпросмотра.",
216
+ "description": "данные для генерации предпросмотра ГРВ",
265
217
  "content": {
266
218
  "application/json-patch+json": {
267
219
  "schema": {
@@ -287,13 +239,13 @@
287
239
  },
288
240
  "responses": {
289
241
  "201": {
290
- "description": "Предпросмотр успешно сгенерирован.",
242
+ "description": "Created",
291
243
  "content": {
292
244
  "text/plain": {
293
245
  "schema": {
294
246
  "type": "array",
295
247
  "items": {
296
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
248
+ "$ref": "#/components/schemas/ScheduleOccurrenceDto"
297
249
  }
298
250
  }
299
251
  },
@@ -301,7 +253,7 @@
301
253
  "schema": {
302
254
  "type": "array",
303
255
  "items": {
304
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
256
+ "$ref": "#/components/schemas/ScheduleOccurrenceDto"
305
257
  }
306
258
  }
307
259
  },
@@ -309,24 +261,19 @@
309
261
  "schema": {
310
262
  "type": "array",
311
263
  "items": {
312
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
264
+ "$ref": "#/components/schemas/ScheduleOccurrenceDto"
313
265
  }
314
266
  }
315
267
  }
316
268
  }
317
269
  },
318
270
  "401": {
319
- "description": "Токен отсутствует или некорректен."
271
+ "description": "Unauthorized"
320
272
  },
321
273
  "403": {
322
- "description": "Недостаточно прав."
274
+ "description": "Forbidden"
323
275
  }
324
- },
325
- "security": [
326
- {
327
- "Bearer": [ ]
328
- }
329
- ]
276
+ }
330
277
  }
331
278
  },
332
279
  "/ScheduleRules/{id}": {
@@ -334,13 +281,12 @@
334
281
  "tags": [
335
282
  "ScheduleRules"
336
283
  ],
337
- "summary": "Возвращает график рабочего времени по идентификатору.",
338
- "description": "## Пример запроса:\r\n```text\r\nGET /ScheduleRules/10\r\nAuthorization: Bearer <access-token>\r\n```\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"name\": \"Стандартный график\",\r\n \"description\": \"График работы с 9:00 до 18:00\",\r\n \"scheduleTypeID\": 1,\r\n \"periods\": [\r\n {\r\n \"from\": \"2024-01-01T00:00:00Z\",\r\n \"till\": \"2024-12-31T23:59:59Z\",\r\n \"holidayCalendarID\": 1,\r\n \"shortageHoursBeforeHoliday\": 1,\r\n \"model\": {\r\n \"rules\": [\r\n {\r\n \"cron\": \"0 9 * * 1-5\",\r\n \"occurrenceDuration\": \"08:00:00\"\r\n }\r\n ],\r\n \"overridings\": []\r\n }\r\n }\r\n ]\r\n}\r\n```\r\n \r\n## Негативные сценарии:\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
284
+ "summary": "Возвращает ГРВ",
339
285
  "parameters": [
340
286
  {
341
287
  "name": "id",
342
288
  "in": "path",
343
- "description": "Идентификатор правила графика.",
289
+ "description": "ГРВ id",
344
290
  "required": true,
345
291
  "schema": {
346
292
  "type": "integer",
@@ -376,7 +322,7 @@
376
322
  ],
377
323
  "responses": {
378
324
  "200": {
379
- "description": "График успешно получен.",
325
+ "description": "OK",
380
326
  "content": {
381
327
  "text/plain": {
382
328
  "schema": {
@@ -396,29 +342,23 @@
396
342
  }
397
343
  },
398
344
  "401": {
399
- "description": "Токен отсутствует или некорректен."
345
+ "description": "Unauthorized"
400
346
  },
401
347
  "403": {
402
- "description": "Недостаточно прав."
403
- }
404
- },
405
- "security": [
406
- {
407
- "Bearer": [ ]
348
+ "description": "Forbidden"
408
349
  }
409
- ]
350
+ }
410
351
  },
411
352
  "put": {
412
353
  "tags": [
413
354
  "ScheduleRules"
414
355
  ],
415
- "summary": "Обновляет график рабочего времени.",
416
- "description": "Если `rules` не указаны, используются правила последнего периода существующего графика.\r\n \r\n## Пример запроса:\r\n```json\r\nPUT /ScheduleRules/10\r\nAuthorization: Bearer <access-token>\r\n \r\n{\r\n \"name\": \"Обновлённый график\",\r\n \"description\": \"Новое описание\",\r\n \"scheduleTypeID\": 1,\r\n \"from\": \"2024-01-01T00:00:00Z\",\r\n \"till\": \"2024-12-31T23:59:59Z\",\r\n \"considerPublicHolidays\": true,\r\n \"shortageHoursBeforeHoliday\": 1,\r\n \"rules\": [],\r\n \"overridings\": []\r\n}\r\n```\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа пустое.\r\n \r\n## Негативные сценарии:\r\n- 409 Conflict — некорректные данные модели.\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
356
+ "summary": "Меняет ГРВ",
417
357
  "parameters": [
418
358
  {
419
359
  "name": "id",
420
360
  "in": "path",
421
- "description": "Идентификатор правила графика.",
361
+ "description": "ГРВ id",
422
362
  "required": true,
423
363
  "schema": {
424
364
  "type": "integer",
@@ -453,7 +393,7 @@
453
393
  }
454
394
  ],
455
395
  "requestBody": {
456
- "description": "Данные для обновления графика.",
396
+ "description": "данные для генерации ГРВ",
457
397
  "content": {
458
398
  "application/json-patch+json": {
459
399
  "schema": {
@@ -479,35 +419,26 @@
479
419
  },
480
420
  "responses": {
481
421
  "202": {
482
- "description": "График успешно обновлён."
483
- },
484
- "409": {
485
- "description": "Некорректные данные."
422
+ "description": "Accepted"
486
423
  },
487
424
  "401": {
488
- "description": "Токен отсутствует или некорректен."
425
+ "description": "Unauthorized"
489
426
  },
490
427
  "403": {
491
- "description": "Недостаточно прав."
428
+ "description": "Forbidden"
492
429
  }
493
- },
494
- "security": [
495
- {
496
- "Bearer": [ ]
497
- }
498
- ]
430
+ }
499
431
  },
500
432
  "delete": {
501
433
  "tags": [
502
434
  "ScheduleRules"
503
435
  ],
504
- "summary": "Удаляет график рабочего времени.",
505
- "description": "## Пример запроса:\r\n```text\r\nDELETE /ScheduleRules/10\r\nAuthorization: Bearer <access-token>\r\n```\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа пустое.\r\n \r\n## Негативные сценарии:\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
436
+ "summary": "Удаляет ГРВ",
506
437
  "parameters": [
507
438
  {
508
439
  "name": "id",
509
440
  "in": "path",
510
- "description": "Идентификатор правила графика.",
441
+ "description": "ГРВ id",
511
442
  "required": true,
512
443
  "schema": {
513
444
  "type": "integer",
@@ -543,20 +474,15 @@
543
474
  ],
544
475
  "responses": {
545
476
  "202": {
546
- "description": "График успешно удалён."
477
+ "description": "Accepted"
547
478
  },
548
479
  "401": {
549
- "description": "Токен отсутствует или некорректен."
480
+ "description": "Unauthorized"
550
481
  },
551
482
  "403": {
552
- "description": "Недостаточно прав."
553
- }
554
- },
555
- "security": [
556
- {
557
- "Bearer": [ ]
483
+ "description": "Forbidden"
558
484
  }
559
- ]
485
+ }
560
486
  }
561
487
  },
562
488
  "/ScheduleRules/extend/{id}": {
@@ -564,13 +490,12 @@
564
490
  "tags": [
565
491
  "ScheduleRules"
566
492
  ],
567
- "summary": "Расширяет график рабочего времени.",
568
- "description": "Если `rules` не указаны, используются правила последнего периода существующего графика.\r\n \r\n## Пример запроса:\r\n```json\r\nPUT /ScheduleRules/extend/10\r\nAuthorization: Bearer <access-token>\r\n \r\n{\r\n \"from\": \"2025-01-01T00:00:00Z\",\r\n \"till\": \"2025-12-31T23:59:59Z\",\r\n \"considerPublicHolidays\": true,\r\n \"shortageHoursBeforeHoliday\": 1,\r\n \"rules\": [],\r\n \"overridings\": []\r\n}\r\n```\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа пустое.\r\n \r\n## Негативные сценарии:\r\n- 409 Conflict — некорректные данные модели.\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
493
+ "summary": "Расширяет ГРВ",
569
494
  "parameters": [
570
495
  {
571
496
  "name": "id",
572
497
  "in": "path",
573
- "description": "Идентификатор правила графика.",
498
+ "description": "ГРВ id",
574
499
  "required": true,
575
500
  "schema": {
576
501
  "type": "integer",
@@ -605,7 +530,7 @@
605
530
  }
606
531
  ],
607
532
  "requestBody": {
608
- "description": "Данные для расширения графика.",
533
+ "description": "данные для генерации ГРВ",
609
534
  "content": {
610
535
  "application/json-patch+json": {
611
536
  "schema": {
@@ -631,23 +556,15 @@
631
556
  },
632
557
  "responses": {
633
558
  "202": {
634
- "description": "График успешно расширен."
635
- },
636
- "409": {
637
- "description": "Некорректные данные."
559
+ "description": "Accepted"
638
560
  },
639
561
  "401": {
640
- "description": "Токен отсутствует или некорректен."
562
+ "description": "Unauthorized"
641
563
  },
642
564
  "403": {
643
- "description": "Недостаточно прав."
644
- }
645
- },
646
- "security": [
647
- {
648
- "Bearer": [ ]
565
+ "description": "Forbidden"
649
566
  }
650
- ]
567
+ }
651
568
  }
652
569
  },
653
570
  "/ScheduleRules/holiday": {
@@ -655,13 +572,12 @@
655
572
  "tags": [
656
573
  "ScheduleRules"
657
574
  ],
658
- "summary": "Возвращает график праздничных дней за указанный год.",
659
- "description": "## Пример запроса:\r\n```text\r\nGET /ScheduleRules/holiday?year=2024\r\nAuthorization: Bearer <access-token>\r\n```\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"RU\": [\r\n \"2024-01-01T00:00:00Z\",\r\n \"2024-01-07T00:00:00Z\"\r\n ]\r\n}\r\n```\r\n \r\n## Негативные сценарии:\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
575
+ "summary": "Возвращает График праздничных дней",
660
576
  "parameters": [
661
577
  {
662
578
  "name": "year",
663
579
  "in": "query",
664
- "description": "Год, за который требуется получить график праздничных дней.",
580
+ "description": "Год, за который требуется получить график праздничных дней",
665
581
  "schema": {
666
582
  "type": "string"
667
583
  }
@@ -695,7 +611,7 @@
695
611
  ],
696
612
  "responses": {
697
613
  "200": {
698
- "description": "График праздников успешно получен.",
614
+ "description": "OK",
699
615
  "content": {
700
616
  "text/plain": {
701
617
  "schema": {
@@ -735,18 +651,42 @@
735
651
  }
736
652
  }
737
653
  },
654
+ "400": {
655
+ "description": "Bad Request",
656
+ "content": {
657
+ "text/plain": {
658
+ "schema": {
659
+ "type": "array",
660
+ "items": {
661
+ "$ref": "#/components/schemas/ErrorModel"
662
+ }
663
+ }
664
+ },
665
+ "application/json": {
666
+ "schema": {
667
+ "type": "array",
668
+ "items": {
669
+ "$ref": "#/components/schemas/ErrorModel"
670
+ }
671
+ }
672
+ },
673
+ "text/json": {
674
+ "schema": {
675
+ "type": "array",
676
+ "items": {
677
+ "$ref": "#/components/schemas/ErrorModel"
678
+ }
679
+ }
680
+ }
681
+ }
682
+ },
738
683
  "401": {
739
- "description": "Токен отсутствует или некорректен."
684
+ "description": "Unauthorized"
740
685
  },
741
686
  "403": {
742
- "description": "Недостаточно прав."
743
- }
744
- },
745
- "security": [
746
- {
747
- "Bearer": [ ]
687
+ "description": "Forbidden"
748
688
  }
749
- ]
689
+ }
750
690
  }
751
691
  },
752
692
  "/WorkSchedules": {
@@ -754,8 +694,7 @@
754
694
  "tags": [
755
695
  "WorkSchedules"
756
696
  ],
757
- "summary": "Возвращает график рабочего времени на заданный период.",
758
- "description": "## Пример запроса:\r\n```text\r\nGET /WorkSchedules?validFrom=2024-06-01&validTill=2024-06-30&scheduleRuleID=10\r\nAuthorization: Bearer <access-token>\r\nRange: Offset=0; Fetch=50\r\n```\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"10\": [\r\n {\r\n \"scheduleRuleID\": 10,\r\n \"timeFrom\": \"2024-06-15T09:00:00Z\",\r\n \"timeTill\": \"2024-06-15T18:00:00Z\",\r\n \"isPublicHoliday\": false,\r\n \"isNightShift\": false,\r\n \"dateWork\": \"2024-06-15T00:00:00Z\"\r\n }\r\n ]\r\n}\r\n```\r\n \r\n## Пример успешного ответа (206):\r\nТело ответа имеет тот же формат, что и для `200`, но содержит частичный диапазон.\r\n \r\n## Пример негативного ответа (400):\r\n```json\r\n{\r\n \"traceIdentifier\": \"0HN1234567890\",\r\n \"code\": \"ScheduleRuleNull\",\r\n \"message\": \"Schedule rule is required\"\r\n}\r\n```\r\n \r\n## Негативные сценарии:\r\n- 204 No Content — график не найден.\r\n- 400 Bad Request — некорректные query-параметры.\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
697
+ "summary": "Возвращает график рабочего времени на заданный период",
759
698
  "parameters": [
760
699
  {
761
700
  "name": "X-Application-ID",
@@ -786,54 +725,13 @@
786
725
  ],
787
726
  "responses": {
788
727
  "200": {
789
- "description": "График успешно получен.",
790
- "content": {
791
- "text/plain": {
792
- "schema": {
793
- "type": "object",
794
- "additionalProperties": {
795
- "type": "array",
796
- "items": {
797
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
798
- }
799
- }
800
- }
801
- },
802
- "application/json": {
803
- "schema": {
804
- "type": "object",
805
- "additionalProperties": {
806
- "type": "array",
807
- "items": {
808
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
809
- }
810
- }
811
- }
812
- },
813
- "text/json": {
814
- "schema": {
815
- "type": "object",
816
- "additionalProperties": {
817
- "type": "array",
818
- "items": {
819
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
820
- }
821
- }
822
- }
823
- }
824
- }
825
- },
826
- "206": {
827
- "description": "Возвращена часть записей в пределах диапазона.",
728
+ "description": "OK",
828
729
  "content": {
829
730
  "text/plain": {
830
731
  "schema": {
831
732
  "type": "object",
832
733
  "additionalProperties": {
833
- "type": "array",
834
- "items": {
835
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
836
- }
734
+ "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
837
735
  }
838
736
  }
839
737
  },
@@ -841,10 +739,7 @@
841
739
  "schema": {
842
740
  "type": "object",
843
741
  "additionalProperties": {
844
- "type": "array",
845
- "items": {
846
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
847
- }
742
+ "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
848
743
  }
849
744
  }
850
745
  },
@@ -852,84 +747,19 @@
852
747
  "schema": {
853
748
  "type": "object",
854
749
  "additionalProperties": {
855
- "type": "array",
856
- "items": {
857
- "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
858
- }
750
+ "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
859
751
  }
860
752
  }
861
753
  }
862
754
  }
863
755
  },
864
- "204": {
865
- "description": "Записи не найдены."
866
- },
867
- "400": {
868
- "description": "Некорректные параметры запроса.",
869
- "content": {
870
- "text/plain": {
871
- "schema": {
872
- "$ref": "#/components/schemas/ProblemDetails"
873
- }
874
- },
875
- "application/json": {
876
- "schema": {
877
- "$ref": "#/components/schemas/ProblemDetails"
878
- }
879
- },
880
- "text/json": {
881
- "schema": {
882
- "$ref": "#/components/schemas/ProblemDetails"
883
- }
884
- }
885
- }
886
- },
887
756
  "401": {
888
- "description": "Токен отсутствует или некорректен.",
889
- "content": {
890
- "text/plain": {
891
- "schema": {
892
- "$ref": "#/components/schemas/ProblemDetails"
893
- }
894
- },
895
- "application/json": {
896
- "schema": {
897
- "$ref": "#/components/schemas/ProblemDetails"
898
- }
899
- },
900
- "text/json": {
901
- "schema": {
902
- "$ref": "#/components/schemas/ProblemDetails"
903
- }
904
- }
905
- }
757
+ "description": "Unauthorized"
906
758
  },
907
759
  "403": {
908
- "description": "Недостаточно прав.",
909
- "content": {
910
- "text/plain": {
911
- "schema": {
912
- "$ref": "#/components/schemas/ProblemDetails"
913
- }
914
- },
915
- "application/json": {
916
- "schema": {
917
- "$ref": "#/components/schemas/ProblemDetails"
918
- }
919
- },
920
- "text/json": {
921
- "schema": {
922
- "$ref": "#/components/schemas/ProblemDetails"
923
- }
924
- }
925
- }
760
+ "description": "Forbidden"
926
761
  }
927
- },
928
- "security": [
929
- {
930
- "Bearer": [ ]
931
- }
932
- ]
762
+ }
933
763
  }
934
764
  },
935
765
  "/WorkSchedules/daily": {
@@ -937,8 +767,7 @@
937
767
  "tags": [
938
768
  "WorkSchedules"
939
769
  ],
940
- "summary": "Возвращает график рабочего времени на заданный период, разбитый по суткам.",
941
- "description": "## Пример запроса:\r\n```text\r\nGET /WorkSchedules/daily?validFrom=2024-06-01&validTill=2024-06-30&scheduleRuleID=10\r\nAuthorization: Bearer <access-token>\r\nRange: Offset=0; Fetch=50\r\n```\r\n \r\n## Пример успешного ответа (200):\r\n```json\r\n{\r\n \"10\": [\r\n {\r\n \"date\": \"2024-06-15T00:00:00Z\",\r\n \"isNightShift\": false,\r\n \"isPublicHoliday\": false,\r\n \"timeFrom\": \"2024-06-15T09:00:00Z\",\r\n \"timeTill\": \"2024-06-15T18:00:00Z\"\r\n }\r\n ]\r\n}\r\n```\r\n \r\n## Пример успешного ответа (206):\r\nТело ответа имеет тот же формат, что и для `200`, но содержит частичный диапазон.\r\n \r\n## Пример негативного ответа (400):\r\n```json\r\n{\r\n \"traceIdentifier\": \"0HN1234567890\",\r\n \"code\": \"ValidityPeriodNull\",\r\n \"message\": \"Validity period is required\"\r\n}\r\n```\r\n \r\n## Негативные сценарии:\r\n- 204 No Content — график не найден.\r\n- 400 Bad Request — некорректные query-параметры (обязательны validFrom и validTill).\r\n- 401 Unauthorized — отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden — недостаточно прав.",
770
+ "summary": "Возвращает график рабочего времени на заданный период по суткам",
942
771
  "parameters": [
943
772
  {
944
773
  "name": "X-Application-ID",
@@ -969,7 +798,7 @@
969
798
  ],
970
799
  "responses": {
971
800
  "200": {
972
- "description": "График по суткам успешно получен.",
801
+ "description": "OK",
973
802
  "content": {
974
803
  "text/plain": {
975
804
  "schema": {
@@ -977,45 +806,7 @@
977
806
  "additionalProperties": {
978
807
  "type": "array",
979
808
  "items": {
980
- "$ref": "#/components/schemas/WorkScheduleDailyByDayResult"
981
- }
982
- }
983
- }
984
- },
985
- "application/json": {
986
- "schema": {
987
- "type": "object",
988
- "additionalProperties": {
989
- "type": "array",
990
- "items": {
991
- "$ref": "#/components/schemas/WorkScheduleDailyByDayResult"
992
- }
993
- }
994
- }
995
- },
996
- "text/json": {
997
- "schema": {
998
- "type": "object",
999
- "additionalProperties": {
1000
- "type": "array",
1001
- "items": {
1002
- "$ref": "#/components/schemas/WorkScheduleDailyByDayResult"
1003
- }
1004
- }
1005
- }
1006
- }
1007
- }
1008
- },
1009
- "206": {
1010
- "description": "Возвращена часть записей в пределах диапазона.",
1011
- "content": {
1012
- "text/plain": {
1013
- "schema": {
1014
- "type": "object",
1015
- "additionalProperties": {
1016
- "type": "array",
1017
- "items": {
1018
- "$ref": "#/components/schemas/WorkScheduleDailyByDayResult"
809
+ "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
1019
810
  }
1020
811
  }
1021
812
  }
@@ -1026,7 +817,7 @@
1026
817
  "additionalProperties": {
1027
818
  "type": "array",
1028
819
  "items": {
1029
- "$ref": "#/components/schemas/WorkScheduleDailyByDayResult"
820
+ "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
1030
821
  }
1031
822
  }
1032
823
  }
@@ -1037,178 +828,102 @@
1037
828
  "additionalProperties": {
1038
829
  "type": "array",
1039
830
  "items": {
1040
- "$ref": "#/components/schemas/WorkScheduleDailyByDayResult"
831
+ "$ref": "#/components/schemas/WorkScheduleDailyItemResult"
1041
832
  }
1042
833
  }
1043
834
  }
1044
835
  }
1045
836
  }
1046
837
  },
1047
- "204": {
1048
- "description": "Записи не найдены."
1049
- },
1050
- "400": {
1051
- "description": "Некорректные параметры запроса.",
1052
- "content": {
1053
- "text/plain": {
1054
- "schema": {
1055
- "$ref": "#/components/schemas/ProblemDetails"
1056
- }
1057
- },
1058
- "application/json": {
1059
- "schema": {
1060
- "$ref": "#/components/schemas/ProblemDetails"
1061
- }
1062
- },
1063
- "text/json": {
1064
- "schema": {
1065
- "$ref": "#/components/schemas/ProblemDetails"
1066
- }
1067
- }
1068
- }
1069
- },
1070
838
  "401": {
1071
- "description": "Токен отсутствует или некорректен.",
1072
- "content": {
1073
- "text/plain": {
1074
- "schema": {
1075
- "$ref": "#/components/schemas/ProblemDetails"
1076
- }
1077
- },
1078
- "application/json": {
1079
- "schema": {
1080
- "$ref": "#/components/schemas/ProblemDetails"
1081
- }
1082
- },
1083
- "text/json": {
1084
- "schema": {
1085
- "$ref": "#/components/schemas/ProblemDetails"
1086
- }
1087
- }
1088
- }
839
+ "description": "Unauthorized"
1089
840
  },
1090
841
  "403": {
1091
- "description": "Недостаточно прав.",
1092
- "content": {
1093
- "text/plain": {
1094
- "schema": {
1095
- "$ref": "#/components/schemas/ProblemDetails"
1096
- }
1097
- },
1098
- "application/json": {
1099
- "schema": {
1100
- "$ref": "#/components/schemas/ProblemDetails"
1101
- }
1102
- },
1103
- "text/json": {
1104
- "schema": {
1105
- "$ref": "#/components/schemas/ProblemDetails"
1106
- }
1107
- }
1108
- }
1109
- }
1110
- },
1111
- "security": [
1112
- {
1113
- "Bearer": [ ]
842
+ "description": "Forbidden"
1114
843
  }
1115
- ]
844
+ }
1116
845
  }
1117
846
  }
1118
847
  },
1119
848
  "components": {
1120
849
  "schemas": {
1121
- "ListResult": {
850
+ "ErrorModel": {
1122
851
  "type": "object",
1123
852
  "properties": {
1124
- "name": {
853
+ "traceIdentifier": {
1125
854
  "type": "string",
1126
- "description": "Название правила",
1127
- "nullable": true,
1128
- "example": "Стандартный график"
855
+ "nullable": true
1129
856
  },
1130
- "description": {
857
+ "code": {
1131
858
  "type": "string",
1132
- "description": "Описание правила",
1133
- "nullable": true,
1134
- "example": "График работы с 9:00 до 18:00"
1135
- },
1136
- "scheduleTypeID": {
1137
- "type": "integer",
1138
- "description": "Тип графика",
1139
- "format": "int32",
1140
- "nullable": true,
1141
- "example": 1
859
+ "nullable": true
1142
860
  },
1143
- "dataFrom": {
861
+ "message": {
1144
862
  "type": "string",
1145
- "description": "Дата старта графика",
1146
- "format": "date-time",
1147
- "example": "2024-01-01T00:00:00Z"
863
+ "nullable": true
864
+ },
865
+ "arguments": {
866
+ "type": "object",
867
+ "additionalProperties": {
868
+ "type": "string",
869
+ "nullable": true
870
+ },
871
+ "nullable": true
1148
872
  }
1149
873
  },
1150
- "additionalProperties": false,
1151
- "description": "Правило графика рабочего времени для списка"
874
+ "additionalProperties": false
1152
875
  },
1153
- "ProblemDetails": {
876
+ "ListResult": {
1154
877
  "type": "object",
1155
878
  "properties": {
1156
- "type": {
879
+ "name": {
1157
880
  "type": "string",
881
+ "description": "Название правила",
1158
882
  "nullable": true
1159
883
  },
1160
- "title": {
884
+ "description": {
1161
885
  "type": "string",
886
+ "description": "Описание правила",
1162
887
  "nullable": true
1163
888
  },
1164
- "status": {
889
+ "scheduleTypeID": {
1165
890
  "type": "integer",
891
+ "description": "Тип графика",
1166
892
  "format": "int32",
1167
893
  "nullable": true
1168
894
  },
1169
- "detail": {
1170
- "type": "string",
1171
- "nullable": true
1172
- },
1173
- "instance": {
895
+ "dataFrom": {
1174
896
  "type": "string",
1175
- "nullable": true
897
+ "description": "Дата старта графика",
898
+ "format": "date-time"
1176
899
  }
1177
900
  },
1178
- "additionalProperties": { }
901
+ "additionalProperties": false,
902
+ "description": "Правило графика рабочего времени для списка"
1179
903
  },
1180
904
  "ScheduleCreateDto": {
1181
905
  "type": "object",
1182
906
  "properties": {
1183
907
  "from": {
1184
908
  "type": "string",
1185
- "description": "Дата начала периода",
1186
- "format": "date-time",
1187
- "example": "2024-01-01T00:00:00Z"
909
+ "format": "date-time"
1188
910
  },
1189
911
  "till": {
1190
912
  "type": "string",
1191
- "description": "Дата окончания периода",
1192
- "format": "date-time",
1193
- "example": "2024-12-31T23:59:59Z"
913
+ "format": "date-time"
1194
914
  },
1195
915
  "considerPublicHolidays": {
1196
- "type": "boolean",
1197
- "description": "Учитывать праздничные дни",
1198
- "example": true
916
+ "type": "boolean"
1199
917
  },
1200
918
  "shortageHoursBeforeHoliday": {
1201
919
  "type": "integer",
1202
- "description": "Сокращение часов перед праздником",
1203
- "format": "int32",
1204
- "example": 1
920
+ "format": "int32"
1205
921
  },
1206
922
  "rules": {
1207
923
  "type": "array",
1208
924
  "items": {
1209
925
  "$ref": "#/components/schemas/ScheduleDtoRule"
1210
926
  },
1211
- "description": "Правила расписания",
1212
927
  "nullable": true
1213
928
  },
1214
929
  "overridings": {
@@ -1216,36 +931,26 @@
1216
931
  "items": {
1217
932
  "$ref": "#/components/schemas/ScheduleDto"
1218
933
  },
1219
- "description": "Переопределения расписания",
1220
934
  "nullable": true
1221
935
  },
1222
936
  "name": {
1223
937
  "type": "string",
1224
- "description": "Название",
1225
- "nullable": true,
1226
- "example": "Стандартный график"
938
+ "nullable": true
1227
939
  },
1228
940
  "description": {
1229
941
  "type": "string",
1230
- "description": "Описание",
1231
- "nullable": true,
1232
- "example": "График работы с 9:00 до 18:00"
942
+ "nullable": true
1233
943
  },
1234
944
  "isDefault": {
1235
- "type": "boolean",
1236
- "description": "Признак графика по умолчанию",
1237
- "example": false
945
+ "type": "boolean"
1238
946
  },
1239
947
  "scheduleTypeID": {
1240
948
  "type": "integer",
1241
- "description": "Тип графика",
1242
949
  "format": "int32",
1243
- "nullable": true,
1244
- "example": 1
950
+ "nullable": true
1245
951
  }
1246
952
  },
1247
- "additionalProperties": false,
1248
- "description": "Данные для создания графика рабочего времени"
953
+ "additionalProperties": false
1249
954
  },
1250
955
  "ScheduleDto": {
1251
956
  "type": "object",
@@ -1302,33 +1007,24 @@
1302
1007
  "properties": {
1303
1008
  "from": {
1304
1009
  "type": "string",
1305
- "description": "Дата начала периода",
1306
- "format": "date-time",
1307
- "example": "2024-01-01T00:00:00Z"
1010
+ "format": "date-time"
1308
1011
  },
1309
1012
  "till": {
1310
1013
  "type": "string",
1311
- "description": "Дата окончания периода",
1312
- "format": "date-time",
1313
- "example": "2024-12-31T23:59:59Z"
1014
+ "format": "date-time"
1314
1015
  },
1315
1016
  "considerPublicHolidays": {
1316
- "type": "boolean",
1317
- "description": "Учитывать праздничные дни",
1318
- "example": true
1017
+ "type": "boolean"
1319
1018
  },
1320
1019
  "shortageHoursBeforeHoliday": {
1321
1020
  "type": "integer",
1322
- "description": "Сокращение часов перед праздником",
1323
- "format": "int32",
1324
- "example": 1
1021
+ "format": "int32"
1325
1022
  },
1326
1023
  "rules": {
1327
1024
  "type": "array",
1328
1025
  "items": {
1329
1026
  "$ref": "#/components/schemas/ScheduleDtoRule"
1330
1027
  },
1331
- "description": "Правила расписания",
1332
1028
  "nullable": true
1333
1029
  },
1334
1030
  "overridings": {
@@ -1336,12 +1032,35 @@
1336
1032
  "items": {
1337
1033
  "$ref": "#/components/schemas/ScheduleDto"
1338
1034
  },
1339
- "description": "Переопределения расписания",
1340
1035
  "nullable": true
1341
1036
  }
1342
1037
  },
1343
- "additionalProperties": false,
1344
- "description": "Данные для расширения или предпросмотра графика рабочего времени"
1038
+ "additionalProperties": false
1039
+ },
1040
+ "ScheduleOccurrenceDto": {
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "start": {
1044
+ "type": "string",
1045
+ "format": "date-time"
1046
+ },
1047
+ "duration": {
1048
+ "type": "string",
1049
+ "format": "date-span"
1050
+ },
1051
+ "isWorking": {
1052
+ "type": "boolean"
1053
+ },
1054
+ "isNightShift": {
1055
+ "type": "boolean",
1056
+ "readOnly": true
1057
+ },
1058
+ "isPublicHoliday": {
1059
+ "type": "boolean",
1060
+ "readOnly": true
1061
+ }
1062
+ },
1063
+ "additionalProperties": false
1345
1064
  },
1346
1065
  "SchedulePersistDto": {
1347
1066
  "type": "object",
@@ -1351,7 +1070,6 @@
1351
1070
  "items": {
1352
1071
  "$ref": "#/components/schemas/ScheduleDtoRule"
1353
1072
  },
1354
- "description": "Правила расписания",
1355
1073
  "nullable": true
1356
1074
  },
1357
1075
  "overridings": {
@@ -1359,113 +1077,86 @@
1359
1077
  "items": {
1360
1078
  "$ref": "#/components/schemas/ScheduleDto"
1361
1079
  },
1362
- "description": "Переопределения расписания",
1363
1080
  "nullable": true
1364
1081
  }
1365
1082
  },
1366
- "additionalProperties": false,
1367
- "description": "Сохранённая модель правил графика"
1083
+ "additionalProperties": false
1368
1084
  },
1369
1085
  "ScheduleRuleDto": {
1370
1086
  "type": "object",
1371
1087
  "properties": {
1372
1088
  "name": {
1373
1089
  "type": "string",
1374
- "description": "Название",
1375
- "nullable": true,
1376
- "example": "Стандартный график"
1090
+ "nullable": true
1377
1091
  },
1378
1092
  "description": {
1379
1093
  "type": "string",
1380
- "description": "Описание",
1381
- "nullable": true,
1382
- "example": "График работы с 9:00 до 18:00"
1094
+ "nullable": true
1383
1095
  },
1384
1096
  "scheduleTypeID": {
1385
1097
  "type": "integer",
1386
- "description": "Тип графика",
1387
1098
  "format": "int32",
1388
- "nullable": true,
1389
- "example": 1
1099
+ "nullable": true
1390
1100
  },
1391
1101
  "periods": {
1392
1102
  "type": "array",
1393
1103
  "items": {
1394
1104
  "$ref": "#/components/schemas/ScheduleRuleDtoPeriod"
1395
1105
  },
1396
- "description": "Периоды действия правил",
1397
1106
  "nullable": true
1398
1107
  }
1399
1108
  },
1400
1109
  "additionalProperties": false,
1401
- "description": "График рабочего времени (ГРВ)"
1110
+ "description": "ГРВ"
1402
1111
  },
1403
1112
  "ScheduleRuleDtoPeriod": {
1404
1113
  "type": "object",
1405
1114
  "properties": {
1406
1115
  "from": {
1407
1116
  "type": "string",
1408
- "description": "Дата начала периода",
1409
- "format": "date-time",
1410
- "example": "2024-01-01T00:00:00Z"
1117
+ "format": "date-time"
1411
1118
  },
1412
1119
  "till": {
1413
1120
  "type": "string",
1414
- "description": "Дата окончания периода",
1415
- "format": "date-time",
1416
- "example": "2024-12-31T23:59:59Z"
1121
+ "format": "date-time"
1417
1122
  },
1418
1123
  "holidayCalendarID": {
1419
1124
  "type": "integer",
1420
- "description": "Идентификатор календаря праздников",
1421
- "format": "int32",
1422
- "example": 1
1125
+ "format": "int32"
1423
1126
  },
1424
1127
  "shortageHoursBeforeHoliday": {
1425
1128
  "type": "integer",
1426
- "description": "Сокращение часов перед праздником",
1427
- "format": "int32",
1428
- "example": 1
1129
+ "format": "int32"
1429
1130
  },
1430
1131
  "model": {
1431
1132
  "$ref": "#/components/schemas/SchedulePersistDto"
1432
1133
  }
1433
1134
  },
1434
- "additionalProperties": false,
1435
- "description": "Период действия правила графика"
1135
+ "additionalProperties": false
1436
1136
  },
1437
1137
  "ScheduleUpdateDto": {
1438
1138
  "type": "object",
1439
1139
  "properties": {
1440
1140
  "from": {
1441
1141
  "type": "string",
1442
- "description": "Дата начала периода",
1443
- "format": "date-time",
1444
- "example": "2024-01-01T00:00:00Z"
1142
+ "format": "date-time"
1445
1143
  },
1446
1144
  "till": {
1447
1145
  "type": "string",
1448
- "description": "Дата окончания периода",
1449
- "format": "date-time",
1450
- "example": "2024-12-31T23:59:59Z"
1146
+ "format": "date-time"
1451
1147
  },
1452
1148
  "considerPublicHolidays": {
1453
- "type": "boolean",
1454
- "description": "Учитывать праздничные дни",
1455
- "example": true
1149
+ "type": "boolean"
1456
1150
  },
1457
1151
  "shortageHoursBeforeHoliday": {
1458
1152
  "type": "integer",
1459
- "description": "Сокращение часов перед праздником",
1460
- "format": "int32",
1461
- "example": 1
1153
+ "format": "int32"
1462
1154
  },
1463
1155
  "rules": {
1464
1156
  "type": "array",
1465
1157
  "items": {
1466
1158
  "$ref": "#/components/schemas/ScheduleDtoRule"
1467
1159
  },
1468
- "description": "Правила расписания",
1469
1160
  "nullable": true
1470
1161
  },
1471
1162
  "overridings": {
@@ -1473,69 +1164,23 @@
1473
1164
  "items": {
1474
1165
  "$ref": "#/components/schemas/ScheduleDto"
1475
1166
  },
1476
- "description": "Переопределения расписания",
1477
1167
  "nullable": true
1478
1168
  },
1479
1169
  "name": {
1480
1170
  "type": "string",
1481
- "description": "Название",
1482
- "nullable": true,
1483
- "example": "Стандартный график"
1171
+ "nullable": true
1484
1172
  },
1485
1173
  "description": {
1486
1174
  "type": "string",
1487
- "description": "Описание",
1488
- "nullable": true,
1489
- "example": "График работы с 9:00 до 18:00"
1175
+ "nullable": true
1490
1176
  },
1491
1177
  "scheduleTypeID": {
1492
1178
  "type": "integer",
1493
- "description": "Тип графика",
1494
1179
  "format": "int32",
1495
- "nullable": true,
1496
- "example": 1
1497
- }
1498
- },
1499
- "additionalProperties": false,
1500
- "description": "Данные для обновления графика рабочего времени"
1501
- },
1502
- "WorkScheduleDailyByDayResult": {
1503
- "type": "object",
1504
- "properties": {
1505
- "date": {
1506
- "type": "string",
1507
- "description": "Дата",
1508
- "format": "date-time",
1509
- "example": "2024-06-15T00:00:00Z"
1510
- },
1511
- "isNightShift": {
1512
- "type": "boolean",
1513
- "description": "Признак ночной смены",
1514
- "example": false
1515
- },
1516
- "isPublicHoliday": {
1517
- "type": "boolean",
1518
- "description": "Признак праздничного дня",
1519
- "nullable": true,
1520
- "example": false
1521
- },
1522
- "timeFrom": {
1523
- "type": "string",
1524
- "description": "Начало работы",
1525
- "format": "date-time",
1526
- "nullable": true,
1527
- "example": "2024-06-15T09:00:00Z"
1528
- },
1529
- "timeTill": {
1530
- "type": "string",
1531
- "description": "Окончание работы",
1532
- "format": "date-time",
1533
- "nullable": true,
1534
- "example": "2024-06-15T18:00:00Z"
1180
+ "nullable": true
1535
1181
  }
1536
1182
  },
1537
- "additionalProperties": false,
1538
- "description": "Запись графика по суткам"
1183
+ "additionalProperties": false
1539
1184
  },
1540
1185
  "WorkScheduleDailyItemResult": {
1541
1186
  "type": "object",
@@ -1543,58 +1188,44 @@
1543
1188
  "scheduleRuleID": {
1544
1189
  "type": "integer",
1545
1190
  "description": "Идентификатор правила графика рабочего времени",
1546
- "format": "int32",
1547
- "example": 10
1191
+ "format": "int32"
1548
1192
  },
1549
1193
  "timeFrom": {
1550
1194
  "type": "string",
1551
1195
  "description": "Начало работы",
1552
1196
  "format": "date-time",
1553
- "nullable": true,
1554
- "example": "2024-06-15T09:00:00Z"
1197
+ "nullable": true
1555
1198
  },
1556
1199
  "timeTill": {
1557
1200
  "type": "string",
1558
1201
  "description": "Окончание работы",
1559
1202
  "format": "date-time",
1560
- "nullable": true,
1561
- "example": "2024-06-15T18:00:00Z"
1203
+ "nullable": true
1562
1204
  },
1563
1205
  "isPublicHoliday": {
1564
1206
  "type": "boolean",
1565
1207
  "description": "Признак праздничного дня",
1566
- "nullable": true,
1567
- "example": false
1208
+ "nullable": true
1568
1209
  },
1569
1210
  "isNightShift": {
1570
1211
  "type": "boolean",
1571
- "description": "Признак ночной смены",
1572
- "example": false
1212
+ "description": "Признак ночной смены"
1573
1213
  },
1574
1214
  "dateWork": {
1575
1215
  "type": "string",
1576
1216
  "description": "Дата работы",
1577
- "format": "date-time",
1578
- "example": "2024-06-15T00:00:00Z"
1217
+ "format": "date-time"
1579
1218
  }
1580
1219
  },
1581
1220
  "additionalProperties": false,
1582
1221
  "description": "Режим работы"
1583
1222
  }
1584
- },
1585
- "securitySchemes": {
1586
- "Bearer": {
1587
- "type": "http",
1588
- "description": "Введите токен для авторизации",
1589
- "scheme": "Bearer",
1590
- "bearerFormat": "JWT"
1591
- }
1592
1223
  }
1593
1224
  },
1594
1225
  "tags": [
1595
1226
  {
1596
1227
  "name": "ScheduleRules",
1597
- "description": "Контроллер управления графиками рабочего времени"
1228
+ "description": "Контроллер управления грфиками рабочего времени"
1598
1229
  },
1599
1230
  {
1600
1231
  "name": "WorkSchedules",
@@ -1602,7 +1233,7 @@
1602
1233
  },
1603
1234
  {
1604
1235
  "name": "ScheduleRules",
1605
- "description": "Контроллер управления графиками рабочего времени"
1236
+ "description": "Контроллер управления грфиками рабочего времени"
1606
1237
  },
1607
1238
  {
1608
1239
  "name": "WorkSchedules",