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: