Initial release of Moniki paid services site and CMS (v1.0.0).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "@moniki/shared",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
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]
|
||||
Reference in New Issue
Block a user