28 lines
740 B
TypeScript
28 lines
740 B
TypeScript
export const LOCALES = ['ru', 'en', 'be', 'tg', 'ky', 'zh'] as const
|
|
export type Locale = (typeof LOCALES)[number]
|
|
export const DEFAULT_LOCALE: Locale = 'ru'
|
|
|
|
export const BOOKING_STATUSES = [
|
|
'pending',
|
|
'confirmed',
|
|
'cancelled',
|
|
'completed',
|
|
'expired',
|
|
] as const
|
|
export type BookingStatus = (typeof BOOKING_STATUSES)[number]
|
|
|
|
export const PAYMENT_STATUSES = [
|
|
'unpaid',
|
|
'pending',
|
|
'paid',
|
|
'failed',
|
|
'refunded',
|
|
] as const
|
|
export type PaymentStatus = (typeof PAYMENT_STATUSES)[number]
|
|
|
|
/** Auto-hold window before admin confirmation (hours). */
|
|
export const BOOKING_HOLD_HOURS = 24
|
|
|
|
export const NOTIFICATION_CHANNELS = ['email', 'sms'] as const
|
|
export type NotificationChannel = (typeof NOTIFICATION_CHANNELS)[number]
|