From 0f9e94dffe5e3f58fc9ac0d9ba3b088cc48e2199 Mon Sep 17 00:00:00 2001 From: Anton Pomorzin Date: Thu, 18 Sep 2025 15:45:10 +0500 Subject: [PATCH] =?UTF-8?q?feat:=20api=20=D0=B2=D0=B8=D0=B4=D0=B6=D0=B5?= =?UTF-8?q?=D1=82=D0=B0=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D1=82=D0=BF=D1=83?= =?UTF-8?q?=D1=81=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2/swagger.yaml | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/v2/swagger.yaml b/v2/swagger.yaml index 6c6e8fc..cb3a0f7 100644 --- a/v2/swagger.yaml +++ b/v2/swagger.yaml @@ -1877,6 +1877,9 @@ paths: myFavorites: # description: User feed - Favorites (in development, not used) $ref: '#/components/schemas/dashboardWidget' + myVacations: + # description: User feed - Vacations of current user and subordinates and team + $ref: '#/components/schemas/dashboardVacationsWidget' myPostcards: # description: User feed - Received postcards $ref: '#/components/schemas/dashboardWidget' @@ -7422,6 +7425,31 @@ components: description: Идеи которые еще не были просмотрены пользователем items: $ref: '#/components/schemas/updIdeaWidgetItem' + + dashboardVacationsWidget: + allOf: + - $ref: '#/components/schemas/dashboardWidget' + - type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/myVacationsWidgetItem' + - type: object + properties: + data: + type: object + properties: + vacationsTeam: + type: array + description: Отпуска коллег (в одном отделе с юзером) + items: + $ref: '#/components/schemas/myVacationsWidgetItem' + vacationsSubordinates: + type: array + description: Отпуска подчиненных + items: + $ref: '#/components/schemas/myVacationsWidgetItem' updIdeaWidgetItem: allOf: @@ -7435,6 +7463,51 @@ components: type: integer description: Количество пользователей проголосовавших за идею + myVacationsWidgetItem: + allOf: + - $ref: '#/components/schemas/dashboardWidgetItem' + - type: object + properties: + data: + type: object + properties: + vacation_planned_status_id: + type: integer + description: Статус отпуска (1-Согласование, 2-Согласован, 5-Отклонен, 3-Открыта заявка, 4-Обработан, 6-Перенос) + vacation_type_id: + type: integer + description: Тип отпуска (1-Ежегодный оплачиваемый, 2-Другой) + date_from: + type: string + format: 'date' + example: 2025-04-27 + description: Дана начала отпуска + date_to: + type: string + format: 'date' + example: 2025-04-27 + description: Дата окончания отпуска + periodLength: + type: integer + description: Продолжительность отпуска в днях + dateFrom: + type: string + description: Дана начала отпуска + dateTo: + type: string + description: Дата окончания отпуска + vacationStatusName: + type: string + description: Текстовый стату отпуска + vacationTypeName: + type: string + description: Текстовый тип отпуска + vacationSubtypeName: + type: string + description: Текстовый подтип отпуска (если тип "Другой") + periodLengthText: + type: integer + description: Продолжительность отпуска в днях feedback: type: object properties: -- 2.54.0