feat: TTLock — add Учетная запись + Пароль fields for OAuth

Per Sciener docs: OAuth requires TTHotel account credentials (Учетная запись + Пароль)
separate from developer app client_id/client_secret.

- Migration 055: add ttlock_username, ttlock_password columns
- Backend: store and pass new fields to agent
- UI: add input fields matching TTHotel PMS integration page
- Agent: getAccessToken() uses ttlockUsername/ttlockPassword when provided

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 11:46:30 +03:00
parent a7b59c4881
commit 8c215f2dcd
4 changed files with 108 additions and 58 deletions

View File

@@ -1094,18 +1094,21 @@ export interface Workstation {
}
export interface TTLockConfig {
isEnabled: boolean
clientId: string
cardSectors: string
apiServer: string
isEnabled: boolean
clientId: string
cardSectors: string
apiServer: string
ttlockUsername: string
}
export interface TTLockConfigUpdate {
isEnabled?: boolean
clientId?: string
clientSecret?: string
cardSectors?: string
apiServer?: string
isEnabled?: boolean
clientId?: string
clientSecret?: string
ttlock_username?: string
ttlock_password?: string
cardSectors?: string
apiServer?: string
}
export interface RoomLockMapping {