Compare commits
1
Commits
master
..
20c0b7dc9c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20c0b7dc9c |
+187
-152
@@ -79,6 +79,8 @@ tags:
|
|||||||
description: Methods for admin oversight of personal API tokens. Requires "api-tokens-admin" permission.
|
description: Methods for admin oversight of personal API tokens. Requires "api-tokens-admin" permission.
|
||||||
- name: admin-employment
|
- name: admin-employment
|
||||||
description: Methods for administrative read-only access to employee employments, including external identifiers used by integrations. Requires "user-edit" permission.
|
description: Methods for administrative read-only access to employee employments, including external identifiers used by integrations. Requires "user-edit" permission.
|
||||||
|
- name: system-notifications
|
||||||
|
description: Methods for reading active HRBox system announcements (home page banner for portal administrators). Requires "admin-controls" permission.
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
/mobile/bind/{id}/{token}:
|
/mobile/bind/{id}/{token}:
|
||||||
@@ -1112,7 +1114,7 @@ paths:
|
|||||||
example: {
|
example: {
|
||||||
"type": "success",
|
"type": "success",
|
||||||
"text": "Запись установлена основной!"
|
"text": "Запись установлена основной!"
|
||||||
}
|
}
|
||||||
errors:
|
errors:
|
||||||
description: Array of validation errors.
|
description: Array of validation errors.
|
||||||
type: array
|
type: array
|
||||||
@@ -5686,7 +5688,6 @@ paths:
|
|||||||
|
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: Список опросов
|
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@@ -5700,16 +5701,16 @@ paths:
|
|||||||
$ref: '#/components/schemas/_links'
|
$ref: '#/components/schemas/_links'
|
||||||
_meta:
|
_meta:
|
||||||
$ref: '#/components/schemas/_meta'
|
$ref: '#/components/schemas/_meta'
|
||||||
400:
|
400:
|
||||||
description: Bad Request.
|
description: Bad Request.
|
||||||
401:
|
401:
|
||||||
description: Unauthorized.
|
description: Unauthorized.
|
||||||
403:
|
403:
|
||||||
description: Unauthorized.
|
description: Unauthorized.
|
||||||
404:
|
404:
|
||||||
description: Not found.
|
description: Not found.
|
||||||
500:
|
500:
|
||||||
description: Server Error.
|
description: Server Error.
|
||||||
|
|
||||||
/survey-assignment/index:
|
/survey-assignment/index:
|
||||||
get:
|
get:
|
||||||
@@ -6022,16 +6023,7 @@ paths:
|
|||||||
- $ref: '#/components/parameters/noDraft'
|
- $ref: '#/components/parameters/noDraft'
|
||||||
- $ref: '#/components/parameters/goalParentId'
|
- $ref: '#/components/parameters/goalParentId'
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalIndexResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/supervise:
|
/goal/supervise:
|
||||||
get:
|
get:
|
||||||
@@ -6051,16 +6043,7 @@ paths:
|
|||||||
- $ref: '#/components/parameters/noDraft'
|
- $ref: '#/components/parameters/noDraft'
|
||||||
- $ref: '#/components/parameters/goalParentId'
|
- $ref: '#/components/parameters/goalParentId'
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalIndexResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/archive:
|
/goal/archive:
|
||||||
get:
|
get:
|
||||||
@@ -6079,16 +6062,7 @@ paths:
|
|||||||
- $ref: '#/components/parameters/goalParentId'
|
- $ref: '#/components/parameters/goalParentId'
|
||||||
- $ref: '#/components/parameters/goalIntervalTypeId'
|
- $ref: '#/components/parameters/goalIntervalTypeId'
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalIndexResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/view:
|
/goal/view:
|
||||||
get:
|
get:
|
||||||
@@ -6190,16 +6164,7 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/GoalItem'
|
$ref: '#/components/schemas/GoalItem'
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalActionResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/approve:
|
/goal/approve:
|
||||||
post:
|
post:
|
||||||
@@ -6220,16 +6185,7 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/GoalItem'
|
$ref: '#/components/schemas/GoalItem'
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalActionResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/reject:
|
/goal/reject:
|
||||||
post:
|
post:
|
||||||
@@ -6250,16 +6206,7 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/GoalItem'
|
$ref: '#/components/schemas/GoalItem'
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalActionResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/finish:
|
/goal/finish:
|
||||||
post:
|
post:
|
||||||
@@ -6280,16 +6227,7 @@ paths:
|
|||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/GoalItem'
|
$ref: '#/components/schemas/GoalItem'
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalActionResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/remove:
|
/goal/remove:
|
||||||
post:
|
post:
|
||||||
@@ -6310,16 +6248,7 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalActionResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/bind:
|
/goal/bind:
|
||||||
post:
|
post:
|
||||||
@@ -6349,16 +6278,7 @@ paths:
|
|||||||
format: uuid
|
format: uuid
|
||||||
description: Цели которые необходимо привязать
|
description: Цели которые необходимо привязать
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalActionResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal/unbind:
|
/goal/unbind:
|
||||||
post:
|
post:
|
||||||
@@ -6380,16 +6300,7 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
format: uuid
|
format: uuid
|
||||||
responses:
|
responses:
|
||||||
200:
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
$ref: '#/components/responses/GoalActionResponse'
|
|
||||||
400:
|
|
||||||
description: Bad Request.
|
|
||||||
403:
|
|
||||||
description: Unauthorized.
|
|
||||||
404:
|
|
||||||
description: Not found.
|
|
||||||
500:
|
|
||||||
description: Server Error.
|
|
||||||
|
|
||||||
/goal-report/users:
|
/goal-report/users:
|
||||||
post:
|
post:
|
||||||
@@ -6539,7 +6450,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/GoalActionResponse'
|
$ref: '#/components/responses/GoalActionResponse'
|
||||||
422:
|
422:
|
||||||
description: Bad Request
|
description: Bad Request
|
||||||
403:
|
403:
|
||||||
@@ -8355,6 +8266,101 @@ paths:
|
|||||||
Запись не найдена. Включает случаи обращения к записям,
|
Запись не найдена. Включает случаи обращения к записям,
|
||||||
принадлежащим другим тенантам.
|
принадлежащим другим тенантам.
|
||||||
|
|
||||||
|
/system-notifications/active:
|
||||||
|
get:
|
||||||
|
tags: [system-notifications]
|
||||||
|
summary: Получить активные системные объявления
|
||||||
|
description: |
|
||||||
|
Возвращает постраничный список активных системных объявлений HRBox
|
||||||
|
(по умолчанию 20 на страницу, максимум 50). По умолчанию сортировка
|
||||||
|
по дате публикации, сначала новые. Используется для баннера
|
||||||
|
на главной странице портала.
|
||||||
|
|
||||||
|
Тело каждого объявления (`body_html`) рендерится из markdown на языке
|
||||||
|
профиля текущего пользователя с откатом на русский, если перевод
|
||||||
|
отсутствует, и очищается до ограниченного набора тегов: `p`, `br`,
|
||||||
|
`strong`, `em`, `del`, `ul`, `ol`, `li`, `a` (внешние `http`/`https` —
|
||||||
|
с `target="_blank" rel="noopener noreferrer"`; пути портала от корня
|
||||||
|
`/…` и `mailto:` — без `target`). Если после очистки
|
||||||
|
текста не осталось, объявление всё равно попадает в выдачу
|
||||||
|
с пустым `body_html` — клиенты такие объявления не показывают.
|
||||||
|
|
||||||
|
Объявления, скрытые текущим пользователем
|
||||||
|
(`POST /system-notifications/dismiss`), в выдачу не попадают.
|
||||||
|
operationId: systemNotificationsActive
|
||||||
|
parameters:
|
||||||
|
- name: per-page
|
||||||
|
in: query
|
||||||
|
schema: { type: integer, minimum: 1, maximum: 50, default: 20 }
|
||||||
|
description: Значение больше 50 урезается до 50.
|
||||||
|
- name: page
|
||||||
|
in: query
|
||||||
|
schema: { type: integer, minimum: 1, default: 1 }
|
||||||
|
- name: sort
|
||||||
|
in: query
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- published_at
|
||||||
|
- -published_at
|
||||||
|
description: По умолчанию `-published_at`.
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Список активных объявлений.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/SystemNotification'
|
||||||
|
_links:
|
||||||
|
$ref: '#/components/schemas/_links'
|
||||||
|
_meta:
|
||||||
|
$ref: '#/components/schemas/_meta'
|
||||||
|
403:
|
||||||
|
description: |
|
||||||
|
У текущего пользователя отсутствует право `admin-controls`.
|
||||||
|
|
||||||
|
/system-notifications/dismiss:
|
||||||
|
post:
|
||||||
|
tags: [system-notifications]
|
||||||
|
summary: Скрыть системное объявление
|
||||||
|
description: |
|
||||||
|
Скрывает активное системное объявление для текущего пользователя
|
||||||
|
на всех устройствах и во всех интерфейсах. Скрытое объявление
|
||||||
|
перестаёт возвращаться методом `GET /system-notifications/active`.
|
||||||
|
Метод идемпотентен: повторный вызов для уже скрытого объявления
|
||||||
|
также возвращает 204.
|
||||||
|
operationId: systemNotificationsDismiss
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
required: [id]
|
||||||
|
properties:
|
||||||
|
id: { type: string, format: uuid, description: ID объявления. }
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
required: [id]
|
||||||
|
properties:
|
||||||
|
id: { type: string, format: uuid }
|
||||||
|
responses:
|
||||||
|
204:
|
||||||
|
description: Объявление скрыто (или уже было скрыто ранее).
|
||||||
|
422:
|
||||||
|
description: |
|
||||||
|
Ошибка валидации (`success: false`, список в `errors`): id не UUID
|
||||||
|
или объявление сейчас не активно (не опубликовано, истекло, отозвано).
|
||||||
|
403:
|
||||||
|
description: |
|
||||||
|
У текущего пользователя отсутствует право `admin-controls`.
|
||||||
|
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
SessionAuth:
|
SessionAuth:
|
||||||
@@ -11523,7 +11529,7 @@ components:
|
|||||||
example: {
|
example: {
|
||||||
"width": 1920,
|
"width": 1920,
|
||||||
"height": 1080
|
"height": 1080
|
||||||
}
|
}
|
||||||
properties:
|
properties:
|
||||||
width:
|
width:
|
||||||
description: Image width.
|
description: Image width.
|
||||||
@@ -13921,27 +13927,31 @@ components:
|
|||||||
_meta:
|
_meta:
|
||||||
$ref: '#/components/schemas/_meta'
|
$ref: '#/components/schemas/_meta'
|
||||||
|
|
||||||
GoalActionResponse:
|
SystemNotification:
|
||||||
description: Goal object
|
|
||||||
type: object
|
type: object
|
||||||
|
description: Системное объявление HRBox в баннере на главной странице портала.
|
||||||
properties:
|
properties:
|
||||||
success:
|
id:
|
||||||
type: boolean
|
type: string
|
||||||
deleted:
|
format: uuid
|
||||||
type: array
|
description: Идентификатор объявления.
|
||||||
items:
|
body_html:
|
||||||
$ref: '#/components/schemas/GoalItem'
|
type: string
|
||||||
description: Цели которые были удалены
|
description: |
|
||||||
updated:
|
Текст объявления, отрендеренный из markdown в HTML на языке
|
||||||
type: array
|
профиля пользователя (откат на русский, если перевод отсутствует)
|
||||||
items:
|
и очищенный до ограниченного набора тегов: `p`, `br`, `strong`,
|
||||||
$ref: '#/components/schemas/GoalItem'
|
`em`, `del`, `ul`, `ol`, `li`, `a` (внешние `http`/`https` —
|
||||||
description: Цели которые были обновлены
|
с `target="_blank" rel="noopener noreferrer"`; пути портала от корня
|
||||||
skipped:
|
`/…` и `mailto:` — без `target`). Пустая строка,
|
||||||
type: array
|
если после очистки текста не осталось — такие объявления клиенты
|
||||||
items:
|
не показывают.
|
||||||
$ref: '#/components/schemas/GoalItem'
|
example: "<p>Плановые работы <strong>1 октября</strong> с 02:00 до 04:00 МСК.</p>"
|
||||||
description: Цели которые не были обработаны
|
published_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
description: Дата и время публикации, ISO 8601 со смещением.
|
||||||
|
example: "2026-09-24T16:30:04+03:00"
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
boardDateTypeParam:
|
boardDateTypeParam:
|
||||||
@@ -14078,28 +14088,53 @@ components:
|
|||||||
|
|
||||||
responses:
|
responses:
|
||||||
GoalIndexResponse:
|
GoalIndexResponse:
|
||||||
description: Список целей
|
200:
|
||||||
content:
|
description: Список целей
|
||||||
application/json:
|
content:
|
||||||
schema:
|
application/json:
|
||||||
type: object
|
schema:
|
||||||
properties:
|
type: object
|
||||||
data:
|
properties:
|
||||||
type: array
|
data:
|
||||||
items:
|
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/GoalItem'
|
type: array
|
||||||
_links:
|
items:
|
||||||
$ref: '#/components/schemas/_links'
|
$ref: '#/components/schemas/GoalItem'
|
||||||
_meta:
|
_links:
|
||||||
$ref: '#/components/schemas/_meta'
|
$ref: '#/components/schemas/_links'
|
||||||
|
_meta:
|
||||||
|
$ref: '#/components/schemas/_meta'
|
||||||
|
400:
|
||||||
|
description: Bad Request.
|
||||||
|
403:
|
||||||
|
description: Unauthorized.
|
||||||
|
404:
|
||||||
|
description: Not found.
|
||||||
|
500:
|
||||||
|
description: Server Error.
|
||||||
|
|
||||||
GoalActionResponse:
|
GoalActionResponse:
|
||||||
description: Результат действия над целями
|
description: Goal object
|
||||||
content:
|
type: object
|
||||||
application/json:
|
properties:
|
||||||
schema:
|
success:
|
||||||
$ref: '#/components/schemas/GoalActionResponse'
|
type: boolean
|
||||||
|
deleted:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/GoalItem'
|
||||||
|
description: Цели которые были удалены
|
||||||
|
updated:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/GoalItem'
|
||||||
|
description: Цели которые были обновлены
|
||||||
|
skipped:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/GoalItem'
|
||||||
|
description: Цели которые не были обработаны
|
||||||
|
|
||||||
security:
|
security:
|
||||||
- SessionAuth: [ ]
|
- SessionAuth: [ ]
|
||||||
|
|||||||
Reference in new issue
Block a user